OSCM (Operation System Configure Management) 是我創建的一個自動化維運腳本的項目,旨在提供敏捷運維。傳統自動化維運工具例如 ansible, saltstack,puppet 不夠靈活,配置繁瑣,很多限制等等。這些工具更適合沒有軟體開發基礎的維運人員。對於從軟體工程師轉到維運領域的人,這些工具就是雞肋。
https://github.com/oscm/shell/
我將常用的運維寫成 Shell 片段,依照環境的不同,加以組合使用。由於是shell 寫,可能自由發揮,不受任何限制,更靈活。
Nginx 安裝腳本
?
1
2
3
1
| //raw
.
githubusercontent .com /oscm/shell/master/os/ centos7<strong></strong>.sh | bash<strong></strong> curl -s / oscm/shell/master/os/ntpd/ntp .sh | bash
curl -s https:<strong>shell</strong>//raw
. /os/user/www .sh | bash
curl -s https: //raw<strong></strong>.>/55mgithon. nginx . centos7.sh | bash
<strong> </strong>1 2 3<strong></strong>4 5
|
curl -s https://raw
.
github
usercontent.com
/oscm/shell/master/oscm/shell/www.co/shell/www.ko./shell/master/osn/shell/
curl -s https:
//raw. github usercontent.com/oscm/shell/master/lang/gcc/gcc :
//raw
| .github usercontent.com
/oscm/shell/master/lang/php/devel .sh | : raw<strong>.</strong>github usercontent.com /oscm/shell/master/lang/php/php-7 .0.0.sh | bash:
.github usercontent.com /oscm/shell/master/lang/php/php-7<strong>.0.0-default.sh | </strong> bash
以上就介紹了PHP 700 一鍵安裝腳本,包含了centos7,github方面的內容,希望對PHP教學有興趣的朋友有幫助。
|