服务器项目命令记录
Contents
RYP有限公司
Flask
workon flaskvir
[root@izwz94gdegum84cnrx9rtoz ~]# cd pythoncode/mysqlinit
[root@izwz94gdegum84cnrx9rtoz mysqlinit]# pwd
/root/pythoncode/mysqlinit
[root@izwz94gdegum84cnrx9rtoz mysqlinit]# ls
dump.rdb infos logs manage.py migrations __pycache__ requirements.txt utils
[root@izwz94gdegum84cnrx9rtoz mysqlinit]# ps -ef | grep gunicorn
root 4319 1 0 Nov18 ? 00:01:39 /root/.env/flaskvir/bin/python3.7 /root/.env/flaskvir/bin/gunicorn -w 20 -b 0.0.0.0:5000 manage:app
root 4726 4319 0 Nov18 ? 00:00:21 /root/.env/flaskvir/bin/python3.7 /root/.env/flaskvir/bin/gunicorn -w 20 -b 0.0.0.0:5000 manage:app
[root@izwz94gdegum84cnrx9rtoz mysqlinit]# kill PID
[root@izwz94gdegum84cnrx9rtoz mysqlinit]# nohup gunicorn -w 20 -b 0.0.0.0:5000 manage:app >/dev/null 2>&1 &
图片CDN8081
lsof -i:8081
[root@izwz94gdegum84cnrx9rtoz static]# pwd
/root/pythoncode/mysqlinit/infos/static
[root@izwz94gdegum84cnrx9rtoz static]# ls
css dist imgs js pifu.zip xlsx
[root@izwz94gdegum84cnrx9rtoz static]# nohup live-server --host=0.0.0.0 --port=8081 >/dev/null 2>&1 &
注册邀请页面8080
lsof -i:8080
[root@izwz94gdegum84cnrx9rtoz niu]# pwd
/root/pythoncode/HTMLshare/niu
[root@izwz94gdegum84cnrx9rtoz niu]# ls
bak index.html nohup.out static
[root@izwz94gdegum84cnrx9rtoz niu]# nohup live-server --host=0.0.0.0 --port=8080 >/dev/null 2>&1 &
Redis
nohup redis-server >/dev/null 2>&1 &
后台管理
nginx 配置 proxy_set_header Host $host:$server_port;
启动前终止
ps -ef | grep rypsystem
kill PID
(flask_ryp) [root@iZm5eab8t820b0vmpk5557Z rypadmin]# pwd
/root/www/rypadmin
(flask_ryp) [root@iZm5eab8t820b0vmpk5557Z rypadmin]# nohup java -jar -Xms2000m -Xmx2000m rypsystem-0.0.1-SNAPSHOT.jar --server.port=8081 &