linux配置环境变量(nginx为例)
摘要:未配置环境变量则无法使用其命令,如下图。 1.编辑 /etc/profile 文件 vi /etc/profile 2.添加配置:nginx路径 PATH=$PATH:/usr/local/nginx/sbin export PATH 3.刷新 source /etc/profile 4.查看 ng
阅读全文
posted @
2022-03-28 15:00
法哈席基
阅读(2516)
推荐(0) 编辑
Nginx实现非80端口转发
摘要:安装nginx https://www.cnblogs.com/JiHC/p/15936349.html 修改nginx配置文件 whereis nginx vi /usr/local/nginx/conf/nginx.conf 我的配置 upstream tomcat{ server localh
阅读全文
posted @
2022-02-26 09:41
法哈席基
阅读(483)
推荐(0) 编辑