![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
ckx0709
坚持,麻木的坚持。
展开
-
Nginx 反向代理端口请求添加stream模块
修改nginx根目录/config/nginx.conf文件,添加配置events { worker_connections 1024;}stream{ upstream star_backend{ server localhost:8080; server localhost:8081; } server{ listen localhost:80; p...原创 2019-04-24 15:35:41 · 697 阅读 · 0 评论 -
XXX..sh: nginx: not found - Ubuntu OpenResty 将nginx配置到环境变量
该报错的原因是因为没有将nginx配置到环境变量中,解决:sudo vim /etc/profile在配置文件中添加nginx环境:一般情况下openresty的安装目录是该路径,按照具体安装位置安装即可。重新加载配置文件:source /etc/profile 或者 ./etc/profile测试:nginx -v...原创 2019-07-09 18:39:16 · 725 阅读 · 0 评论