OSCM (Operation System Configure Management) 是我建立的一個自動化運維腳本的項目,旨在提供敏捷運維。傳統自動化運維工具例如 ansible, saltstack,puppet 不夠靈活,配置繁瑣,不少限制等等。這些工具更適合沒有軟件開發基礎的運維人員。對於從軟件工程師轉到運維領域的人,這些工具就是雞肋。 php
https://github.com/oscm/shell/ nginx
我將經常使用的運維寫成 Shell 片斷,根據環境的不一樣,加以組合使用。因爲是shell 編寫,可能自由發揮,不受任何限制,更靈活。git
Nginx 安裝腳本github
curl -s https://raw.githubusercontent.com/oscm/shell/master/os/centos7.sh | bash curl -s https://raw.githubusercontent.com/oscm/shell/master/os/ntpd/ntp.sh | bash curl -s https://raw.githubusercontent.com/oscm/shell/master/os/user/www.sh | bash curl -s https://raw.githubusercontent.com/oscm/shell/master/web/nginx/nginx.centos7.sh | bash
PHP 安裝腳本web
curl -s https://raw.githubusercontent.com/oscm/shell/master/os/user/www.sh | bash curl -s https://raw.githubusercontent.com/oscm/shell/master/lang/gcc/gcc.sh | bash curl -s https://raw.githubusercontent.com/oscm/shell/master/lang/php/devel.sh | bash curl -s https://raw.githubusercontent.com/oscm/shell/master/lang/php/php-7.0.0.sh | bash curl -s https://raw.githubusercontent.com/oscm/shell/master/lang/php/php-7.0.0-default.sh | bash