一些linux相关命令

关于uwsgi:

#查看uwsgi进程

ps -ef|grep uwsgi|grep -v grep

#停止uwsgi

killall -9 uwsgi

或通过查看的那条命令找到PID,如果是2222,

kill -9 2222

#uwsgi 启动

uwsgi -x /websitedir/laonan.net/heather/uwsgi.xml --daemonize /var/log/uwsgi.log

scp下载文件

scp root@192.168.120.204:/opt/soft/nginx-0.5.38.tar.gz /opt/soft/

scp上传文件

scp /opt/soft/nginx-0.5.38.tar.gz root@192.168.120.204:/opt/soft/scptest

gz解压

tar zxvf FileName.tar.gz

gz压缩

tar zcvf FileName.tar.gz DirName

关于nginx

启动:/usr/local/nginx/sbin/nginx 
重启:kill -HUP `cat /usr/local/nginx/logs/nginx.pid`


停止nginx:pkill -9 nginx

测试配置文件:nginx -t

中老年程序员备忘:以后再添加linux命令就放在这里。。。

For example, "name@something.com". If someone replies to you it will be via email.
For example, "http://someaddress.com"