1.nginx使用
參考:https://blog.csdn.net/qq_33661804/article/details/85340697
1.1 下載下傳安裝:
下載下傳
wget http://nginx.org/download/nginx-1.13.6.tar.gz
解壓縮
tar -zvxf nginx-1.13.6.tar.gz
cd nginx-1.13.6
安裝
./configure --with-http_ssl_module --with-http_gzip_static_module
make
make install
啟動程式:
cd /usr/local/nginx/sbin/
./nginx
1.2 nginx配置檔案
配置檔案:
cd /usr/local/nginx/conf
常用指令
複制配置檔案
cp default.conf default-copy.conf
指定配置檔案啟動nginx
./nginx -c conf/default-copy.conf
停止nginx
./nginx -s stop
修改配置檔案
前端打封包件放置位置:/myfile/eladmin/dist

通路119.29.62.229:8013直接就能通路到前端
mario-plus.xyz是我買的域名
目前前端,後端是聯調好了才部署到伺服器上