安装:https://www.cnblogs.com/meng1314-shuai/p/8335140.html
配置:https://www.cnblogs.com/renjing/p/6126284.html
我的nginx安装路径:cd /opt/homebrew/etc/nginx/servers/
启动:nginx
强制停止:nginx -s stop
安全退出:nginx -s quit
修改nginx配置文件:vim nginx.conf
保存:sudo nginx -s reload
查看进程:ps aux |grep nginx
# 在window下使用nginx代理项目
# nginx.config
server {
listen 7777;
server_name localhost;
location /{
root /Users/usrname_xxxx/Coding/web_project/LidarPlatformFrontend-main/dist;
index index.html index.htm;
}
}