小编Bry*_*son的帖子

如何在 OS X 登录时在端口 80 上启动 nginx?

我使用自制软件安装了 Nginx ,完成安装后显示以下消息:

In the interest of allowing you to run `nginx` without `sudo`, the default
port is set to localhost:8080.

If you want to host pages on your local machine to the public, you should
change that to localhost:80, and run `sudo nginx`. You'll need to turn off
any other web servers running port 80, of course.

You can start nginx automatically on login running as your user with:
  mkdir -p ~/Library/LaunchAgents
  cp #{prefix}/org.nginx.nginx.plist ~/Library/LaunchAgents/
  launchctl load …
Run Code Online (Sandbox Code Playgroud)

boot osx-snow-leopard permissions nginx launchctl

24
推荐指数
2
解决办法
2万
查看次数

标签 统计

boot ×1

launchctl ×1

nginx ×1

osx-snow-leopard ×1

permissions ×1