- 創(chuàng)建一個(gè)虛擬機(jī),參考 https://blog.csdn.net/m0_48468018/article/details/132267096,入站端口開啟80,22
- 進(jìn)行遠(yuǎn)程遠(yuǎn)程連接
- 使用CLI命令部署NGINX,輸入如下命令
sudo su
apt-get update -y
apt-get install nginx git -y
最后的效果
4. 關(guān)閉創(chuàng)建的虛擬機(jī),并在概述中停止虛擬機(jī)文章來源:http://www.zghlxwxcb.cn/news/detail-655732.html
shut down
5. 點(diǎn)擊捕獲按鈕,創(chuàng)建映像,將映像共享到azure compute gallery 選擇否即可
6. 轉(zhuǎn)到資源,通過鏡像創(chuàng)建虛擬機(jī),創(chuàng)建的時(shí)候注意開放80端口
7. 訪問該公共IP,可以看到也成功部署了nginx文章來源地址http://www.zghlxwxcb.cn/news/detail-655732.html
到了這里,關(guān)于Azure創(chuàng)建自定義VM鏡像的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!