sudo nginx 启动
sudo nginx -s reload 重新启动
ps -ef|grep nginx 查看nginx所在端口号
sudo kill -term 端口号 强制杀死nginx进程
查看和修改nginx配置文件 cmd+shift+g 前往 /usr/local/etc/nginx/ 进入此目录下

通过dist文件配置一套启动的环境,将dist文件放置到 /Applications/办公软件/nginx-1.10.3/html/agentAccount/dist 目录下,nginx配置文件的配置修改为

location / {
      root   html/代码目录名/dist/;
      index  login.html;
}
location =/personal.html {
    alias html/代码目录名/dist/personal.html;
}

标签: 配置文件, nginx, sudo, html, 端口号, 操作, dist, MacBook

相关文章推荐

添加新评论,含*的栏目为必填