概述
以下是在mac os x 10.9.2 安装nginx步骤
安装PCRE
1、Download latest PCRE.
2、安装
$ cd ~/Downloads
$ tar xvzf pcre-8.5
$ cd pcre-8.5
$ sudo ./configure --prefix=/usr/local
$ sudo make
$ sudo make install
安装Nginx
1、Download latest nginx from Nginx.org.
2、安装
$ cd ~/Downloads
$ tar xvzf nginx-1.6.0.tar.gz
$ cd nginx-1.6.0
$ sudo ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-cc-opt="-Wno-deprecated-declarations"
$ sudo make
$ sudo make install
开启Nginx
1、将/usr/local/nginx/sbin加入到环境变量里
2、运行
$ sudo nginx
3、打开浏览器 http://localhost,如果看到如下界面表明nginx启动正常了
4、停止
$ sudo nginx -s stop
MacOS下Nginx安装指南
本文档详细介绍了在MacOS 10.9.2环境下安装Nginx的具体步骤,包括安装必要的依赖库PCRE,配置环境变量以及如何启动和停止Nginx服务。
669

被折叠的 条评论
为什么被折叠?



