Jenkins 提供了软件开发的持续集成服务。它运行在 Servlet 容器中(例如 Apache Tomcat)。它支持软件配置管理(SCM)工具(包括 AccuRev SCM、CVS、Subversion、Git、Perforce、Clearcase 和 RTC),可以执行基于 Apache Ant 和 Apache Maven 的项目,以及任意的 Shell 脚本和 Windows 批处理命令。
官网: https://www.jenkins.io
Jenkins 提供了软件开发的持续集成服务。它运行在 Servlet 容器中(例如 Apache Tomcat)。它支持软件配置管理(SCM)工具(包括 AccuRev SCM、CVS、Subversion、Git、Perforce、Clearcase 和 RTC),可以执行基于 Apache Ant 和 Apache Maven 的项目,以及任意的 Shell 脚本和 Windows 批处理命令。
官网: https://www.jenkins.io
Kubernetes 是一个可移植、可扩展的开源平台,用于管理容器化的工作负载和服务,可促进声明式配置和自动化。 Kubernetes 拥有一个庞大且快速增长的生态,其服务、支持和工具的使用范围相当广泛。
Kubernetes 这个名字源于希腊语,意为“舵手”或“飞行员”。K8s 这个缩写是因为 K 和 s 之间有 8 个字符的关系。 Google 在 2014 年开源了 Kubernetes 项目。 Kubernetes 建立在 Google 大规模运行生产工作负载十几年经验的基础上, 结合了社区中最优秀的想法和实践。
官网: https://kubernetes.io
主要记录官网的安装部署实践, 以及一些遇到的问题
more >>
我这里使用的i3wm 窗口管理器. 所以,操作的话,基本是靠命令来完成的 现在我需要使用多个显示器,就用到了xrandr这个工具
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38> xrandr
eDP-1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 276mm x 155mm
1366x768 60.11*+
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
700x525 59.98
800x450 59.95 59.82
640x512 60.02
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
640x400 59.88 59.98
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected primary (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94
服务器的安全问题,务必要认真对待。 安全策略:
1
2
3
4
5
6
7
8
9
10
11vim /etc/ssh/sshd_config
Port 22 # 取消注释,修改监听端口
StrictModes yes # 用户权限鉴定的,建议设置
RSAAuthentication yes # RSA 公钥鉴定
PubkeyAuthentication yes # 允许key的方式登录
PermitRootLogin no # 不允许root登录
PasswordAuthentication no # 不允许密码登录
vim ~/.ssh/authorized_keys # 这个文件每一行代表一个公共key
chmod 600 ~/.ssh/authorized_keys
chmod 700 ~/.ssh
systemctl restart sshd
通过公网连接不同的局域网,使其就像同一个局域网内部访问一般。
1
2
3
4
5
6-f 通常和-N连用,不登录到远程主机,就是后台执行的意思
-N 不执行脚本或命令,通常与-f连用
-g 在-L/-R/-D参数中,允许远程主机连接到建立的转发的端口,如果不加这个参数,只允许本地主机建立连接
-q quiet模式,忽视大部分的警告和诊断信息
-T 禁用tty分配
-n 重定向stdin为/dev/null,用于配合-f后台任务
不让该账户执行命令
1
2
3useradd -m tunnel
passwd tunnel
chsh -s /bin/false tunnel
转发本地端口流量至指定主机
1
ssh -D 8888 user@host
这样所有来到本地8888端口的流量都有发送到host主机,就是远程主机 应用场景:数据过滤,限制指定主机上网,代理,等等. more >>
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true