下載一個學習包node
knife cookbook site download learn_chef_httpdbootstrap
解壓下ssh
tar -zxvf learn_chef_httpd-0.2.0.tar.gzcurl
上傳下ide
knife cookbook upload learn_chef_httpd學習
knife bootstrap 192.168.10.142 --ssh-user root --ssh-password 12345.com --node-name chefnode --run-list 'recipe[learn_chef_httpd]' url
curl 192.168.10.142 803d
node 80端口被httpd啓動blog
網頁訪問下ip