後臺管理系統部署流程
1、進入解壓的nginx的nginx-1.8.0\conf目錄下。編輯nginx.conf文件
server {
server_name localboss.pppcloud.cn;
location / {
add_header Cache-Control no-store;
root D:\work\workspace\html\xcloud\public;
index index.html index.htm;
location /smartBus-Manager-v1{
proxy_pass http://127.0.0.1:8085$request_uri;
}
}
}
A、localboss.pppcloud.cn; 應配置到系統C:\Windows\System32\drivers\etc目錄下host文件中127.0.0.1之後;瀏覽器輸入訪問的地址
B、D:\work\workspace\html\xcloud\public;爲svn中前端項目中html中的xcloud\public目錄;
C、smartBus-Manager-v1爲後臺項目名
D、http://127.0.0.1:8085$request_uri;代理地址
2、啓動nginx 。Cmd進入nginx解壓目錄,startnginx.exe啓動 nginx.exe -s stop
3、啓動後臺項目