ansen.org 域名用了5年多了,期间一直想换成 .com 域名,今天终于拍脑决定换成 lshell.com 了,顺应域名,博客名字也由 Ansen’s Blog 更换成了 Linux Shell ,希望我能在 Linux 运维路上走得更远……
In salt development version already has this function.
Salt version of me in my server used above is 2015.5.8 (Lithium), state module does not rsync, and you know it is crazy update all server to development version, So I ported this function to the current version. It’s very simple.
Add a custom module and state module,Copy the files from the development version over, only need a simple modification.
# mkdir /srv/salt/_modules # mkdir /srv/salt/_states # vim /srv/salt/_modules/rsync.
使用快捷键提升操作效率。 删除 ctrl + d 删除光标所在位置上的字符相当于VIM里x或者dl ctrl + h 删除光标所在位置前的字符相当于VIM里hx或者dh ctrl
For reasons known, server connections overseas Chinese mainland will be disturbed, so I use Haproxy reverse proxy it in Hong Kong.
I encountered such a problem, if the ssh connection idle for 50 seconds will automatically disconnect. I connect to the server and mainland China does not have this problem. So I think it is not Haproxy problem, I checked the configuration and Debug, did not find any problems.
From Google doodle 再见2015,这一年又无声的过去了,有许多欢乐,也有许多悲伤,更多的是淡如水的重复。 还是老三样,工作,和生活 对,没有爱情。 工作 回想20
因为要在python脚本里执行系统命令,在网上找了一下相关的模块。 之前用的最多的是popen 而commands是对popen的封装; 而os.