常用命令-2023.2.3更新
ZH Lv2
1
ps aux    显示进程信息
1
ps -elf -e    更详细的进程信息

gunicorn -w 4 -b 127.0.0.1:5000 index:app 智慧物联服务(已经停用)

1
/etc/motd    登录问候语
1
nethogs   带宽
1
/etc/nginx/sites-available/default    nginx配置(site)
1
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple [包名]    pip清华源下载
1
sudo nano /etc/systemd/system/seahub.service    开机服务
1
/home/pi/seafile/seafile-server-8.0.5    seafile服务器位置
1
hdparm -Tt /dev/sda1    磁盘测速
1
2
sudo uwsgi --ini uwsgi.ini    python后端启动
sudo uwsgi --stop uwsgi.pid python后端关闭(pid方法)
1
sudo nohup python main.py >hello.log &    后台执行操作