锐单电子商城 , 一站式电子元器件采购平台!
  • 电话:400-990-0325

nginx环境配置说明

时间:2022-11-02 15:00:00 35100d07no光电传感器35100d07pc光电传感器2565d07nc光电传感器

mac下载安装配置参考:

使用brew install nginx安装
https://www.cnblogs.com/meng1314-shuai/p/8335140.html
https://www.jianshu.com/p/d07ed9d057da

相关操作命令:
1、brew update //更新brew,确保安装nginx不连接外网超时失败
2、brew search nginx ///检查要安装的软件是否存在
3、brew info nginx //nginx尚未在当地安装(Not installed)
4、brew install nginx //安装
5、nginx -V ////查看版本和配置文件 或者 nginx -v ///查看版本
6、open /usr/local/etc/nginx/ //查看nginx安装目录
7、open /usr/local/Cellar/nginx //其实这才是nginx安装的目录
8、nginx //启动nginx,没有报错就是成功
9、localhost:8080 // 浏览器访问是否成功
10、cat /usr/local/etc/nginx/nginx.conf ///查看配置文件
11、nginx -s reload|reopen|stop|quit //重新加载配置|重启|停止|退出 nginx
在这里插入图片描述

NGINX操作与控制:
https://www.nginx.cn/nginxchscommandline#reload config
反向代理-负载平衡:
https://blog.csdn.net/qq_42030417/article/details/83185809

锐单商城拥有海量元器件数据手册IC替代型号,打造电子元器件IC百科大全!

相关文章