ps -ef | grep xxx.jar------------查看jar包进程号
ps -aux | grep java --------------查看jar包进程号
netstat -tunlp|grep 8888 ------------ java项目占用的8888端口, 首先查看该进程的进程号:
kill -s 9 进程号----------------------杀死进程
nohup java -jar xxxxxxxx.jar & ----------后台启动jar包(在命令的前面加上nohup,就可以保证启动命令彻底脱离终端窗口;在命令的末尾加上一个&符号,就能让该命令在后台运行)
ps -ef|grep java ---------- 剩下查看进程命令
tail -f ./nohup.out --------------jar包路径中建立nohup.out文件,然后可通过以下命令查看jar包后台运行的日志
重启nginx:systemctl restart nginx 或 service nginx restart 或进入sbin目录下输入./nginx -s reload
重启clickhouse: systemctl start clickhouse-server
nginx代理:location /api/ {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://192.168.0.85:83;
}