1.查找gunicrorn所在目录
find / -name gunicorn
#打印出
/usr/local/python3/bin/gunicorn
/usr/local/python3/lib/python3.7/site-packages/gunicorn
2.进入/usr/local/python3/bin/
cd /usr/local/python3/bin/
# 执行
./gunicorn -h
3.创建软链接
ln -s /usr/local/bin/python3/bin/gunicorn /usr/bin/gunicorn
4.使用
# 回到家目录
# 依旧可以使用gunicorn
gunicorn -v
网友评论