|
1.安裝lnmp.這里采用一鍵安裝的包 yum -y install wget ? wget?http://soft./lnmp/lnmp1.6-full.tar.gz 2.加壓安裝lnmp,具體參考官網(wǎng)安裝:https:///install.html 解壓包:tar ?zxvf ?lnmp1.6-full.tar.gz
? ? ?進(jìn)入包,執(zhí)行安裝腳本:
? ? ?選擇安裝需要版本的軟件
? ? ?檢查是否安裝成功,有沒有進(jìn)程 ps aux|grep ?nginx? ps aux|grep ?php ps aux|grep ?mysql
? ? ? 至此lnmp安裝成功 找nginx配置文件 find / -name nginx.conf
? ?編輯nginx.conf,在配置文件添加 如圖:
? ? ?測試nginx cd ??/home/wwwroot/default ? (此路徑就是nginx.conf配置文件中root ?后面跟的路徑) vi ?index.php創(chuàng)建index.php文件 index.php添加如圖
?? 下載 cd?usr/local/src
? ?cp -r upload/* /home/wwwroot/default/ ?把網(wǎng)站源碼解壓包拷貝到nginx目錄下
? ? ? ?在瀏覽器輸入http://192.168.50.132/install
? ? ? ?文件太多授權(quán)麻煩,直接腳本授權(quán) vi ?1.txt ??
? ? vi ?1.sh
? ? ? ? ? ? ? discuz 安裝完成 ?
? 來源:https://www./content-3-440251.html |
|
|