Linux模板配置文件样例

<p>在Linux服务器中创建名为pacloud的json文件并粘贴以下内容。</p> <table border="1" cellpadding="1" cellspacing="1" style="width:551px"> <tbody> <tr> <td style="background-color:#ededed; width:543px"> <p>{</p> <p>&nbsp; &quot;builders&quot;: [</p> <p>&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;type&quot;: &quot;pacloud&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;communicator&quot;: &quot;ssh&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ssh_username&quot;: &quot;root&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ssh_password&quot;: &quot;xxxxxxxx&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ssh_timeout&quot;: &quot;5h&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;access_key_id&quot;:&quot;xxxxxxxx&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;access_key_secret&quot;:&quot;xxxxxxxx&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;timeout&quot;:10,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;debug&quot;:true,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;image_name&quot;:&quot;linux-test&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;source_image_id&quot;:&quot;Image-2N5XOLDfUb&quot;,</p> <p>&nbsp;&nbsp;&nbsp; &quot;zone_name&quot;:&quot;HKA&quot;</p> <p>&nbsp;&nbsp;&nbsp; }</p> <p>&nbsp; ],</p> <p>&nbsp;</p> <p>&nbsp; &quot;provisioners&quot;: [{</p> <p>&nbsp;&nbsp;&nbsp; &quot;type&quot;: &quot;shell&quot;,</p> <p>&nbsp;&nbsp;&nbsp; &quot;inline&quot;: [<br /> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &quot;sleep 30&quot;,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&quot;yum install redis.x86_64 -y&quot;</p> <p>&nbsp;&nbsp;&nbsp; ]</p> <p>&nbsp; }]</p> <p>}</p> </td> </tr> </tbody> </table> <p>&nbsp;</p>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询 - 7x24 小时

400-151-8800

邮件咨询

cloud@pingan.com

在线客服

7x24 小时,急速解答

工单支持

解决云产品相关技术问题