自動化運維工具安裝部署 chef (十)- first cookbook learn httpd

下載一個學習包node

knife cookbook site download learn_chef_httpdbootstrap

解壓下ssh

tar -zxvf learn_chef_httpd-0.2.0.tar.gzcurl

17e57ee158ce42408ee0115daaa35c69

上傳下ide

knife cookbook upload learn_chef_httpd學習

c3fa26c5a3b14a4b98cb96f03498bfa3

knife bootstrap 192.168.10.142 --ssh-user root --ssh-password 12345.com --node-name chefnode --run-list 'recipe[learn_chef_httpd]' url

b73b68dfb5424df5a40eb027eb69a8fa

curl 192.168.10.142 803d

086c9f9b482a4c58a04207bfff217bb3

node 80端口被httpd啓動blog

71995319a430455c9ba39ca79fb6a01f

網頁訪問下ip

6d3ef24fd21b4a02a8c1edffe54854dc

相關文章
相關標籤/搜索