pro.md 846 Bytes
Newer Older
shenggui.li committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
## mobdna线上环境配置
>所有下载的安装包路径:`/usr/develop`

>jdk安装路径:`/usr/local/jdk1.8/`

>jdk版本:`1.8.0_201`

Redis,RDS均为云服务

####前端使用Nginx部署
>nginx安装路径:`/usr/local/nginx`

>nginx配置文件路径:`/usr/local/nginx/conf/nginx.conf`

>前端HTML路径:`/data/application/mobdna-h5`

>后端jar路径:`/data/application/mobdna`
```
启动:/usr/local/nginx/sbin
进入sbin,启动Nginx
./nginx
查看是否启动成功
ps -ef | grep nginx
# Nginx重载配置
./nginx -s reload
# 测试配置文件是否正确
./nginx -t -c /usr/local/nginx/conf/nginx.conf
# Nginx快速停止服务
./nginx -s stop
# 其他停止方式
# 查询主进程
ps -ef | grep nginx
# 找到master进程
# 从容停止
kill -QUIT id
# 快速停止
kill -TERM id
# 强制停止
kill -9 id
```