duanyong@MacPro-2:~$ brew install ng
==> Downloading http://nginx.org/download/nginx-1.2.6.tar.gz
######################################################################## 100.0%
==> Patching
patching file conf/nginx.conf
==> ./configure --prefix=/usr/local/Cellar/nginx/1.2.6 --with-http_ssl_module --with-pcre --with-ipv6 --with-cc-opt=-I/usr/local/include --with-ld-opt=-L/usr/local/lib --conf-path=/
==> make
==> make install
==> Caveats
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 /usr/local/Cellar/nginx/1.2.6/homebrew.mxcl.nginx.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
Though note that if running as your user, the launch agent will fail if you
try to use a port below 1024 (such as http's default of 80.)
To have launchd start nginx at login:
ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
Then to load nginx now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
==> Summary
相关推荐
centos7.6离线安装nginx
Linux离线安装nginx安装包,附带安装教程,可以及时更新最新安装路径
ubuntu20.04无网dpkg安装nginx
nginx离线安装依赖项_linux系统/麒麟v10系统. 离线安装 内网离线安装Nginx 安装Nginx的依赖包如下: PCRE(Perl Compatible Regular Expressions):Nginx使用PCRE来支持正则表达式,可以使用它更灵活地匹配和处理...
非root下,离线安装nginx依赖加nginx安装包,需要先装gcc-c++
这里记录一下自己在centos7操作系统下安装nginx的过程,以便之后学习时查阅。笔者这里的Linux服务器使用的是腾讯云服务器,本人是一名Java程序员也是Linux的初学者有什么不对的地方请多指教,以后还会有更多的关于...
Linux离线安装Nginx资源包
ubuntu 20.04 离线安装Nginx(nginx-full_1.18.0)及相关依赖文件
linux下安装Nginx所需依赖包合集
nginx安装环境及nginx_1.18.0安装包,gcc、g++、pcre、zlib、nginx包
国产化环境麒麟v10系统arm64下安装nginx所有依赖
mac无坑安装nginx(csdn)————程序
yum安装nginx教程,让你轻松安装nginx,本人亲自测试成功经验
大多产品部署在内网,外网资源很难获取。nginx离线资源包,解决内网部署问题
该资源是在华为泰山服务器鲲鹏920cup中标麒麟操作系统上离线安装nginx所需的所有rpm包和nginx源码
Dockerfile 编译安装nginx FROM hub.c.163.com/netease_comb/centos:7 RUN yum install -y gcc gcc-c++ make openssl-devel pcre-devel #http://nginx.org/download/nginx-1.12.2.tar.gz ADD nginx-1.12.2....
安装Nginx依赖组件
通过RPM方式安装NGINX,需要升级openssl 安装命令:rpm -ivh openssl-libs-1.0.2k-25.el7_9.x86_64.rpm --force
centos7下在有网络和没网络的情况安装nginx;
docker离线安装nginx镜像