mac 安装 nginx
2014-07-16 16:18
190 查看
nginx需要pcre支持
使用macprot安装pcre
sudoportinstallpcre
接下来的步奏参考centos下nginx的安装。
macport安装
因为Mac的底层是bsd的,所以我们一可以使用bsd的软件包安装方式–Macports,类似linux下的yumapt-get.
访问官方网站http://www.macports.org/install.php,这里提供有dmg安装和源码安装两种方式,dmg就不多说了,下一步下一步安装即可。
下载地址http://distfiles.macports.org/MacPorts/
1、
export
PATH=/opt/local/bin:$PATH
source
2、通过Source安装MacPort
MacPorts使用
参见官方文档:http://guide.macports.org/#installing.shell
搜索索引中的软件
安装新软件
查看有更新的软件以及版本
升级可以更新的软件
使用macprot安装pcre
sudoportinstallpcre
接下来的步奏参考centos下nginx的安装。
macport安装
因为Mac的底层是bsd的,所以我们一可以使用bsd的软件包安装方式–Macports,类似linux下的yumapt-get.
访问官方网站http://www.macports.org/install.php,这里提供有dmg安装和源码安装两种方式,dmg就不多说了,下一步下一步安装即可。
下载地址http://distfiles.macports.org/MacPorts/
1、
vim~/.bash_profile
export
PATH=/opt/local/bin:$PATH
source
~/.bash_profile
2、通过Source安装MacPort
wgethttp://distfiles.macports.org/MacPorts/MacPorts-2<strongid="speechFragmentSeparator__1_13"class="speechFragmentSeparator"style="margin:0px;padding:0px;border:0px;font-size:12px;font:inherit;vertical-align:baseline;font-weight:inherit;font-style:inherit;">.1</strong>.2.tar.gz tarzxvfMacPorts-2.1.2.tar.gz cdMacPorts-2.1.2 ./configure&&make&&sudomakeinstall cd../ rm-rfMacPorts-2<strongid="speechFragmentSeparator__1_16"class="speechFragmentSeparator"style="margin:0px;padding:0px;border:0px;font-size:12px;font:inherit;vertical-align:baseline;font-weight:inherit;font-style:inherit;">.1</strong>.2*
MacPorts使用
参见官方文档:
sudoport-vselfupdate
搜索索引中的软件
portsearchname
安装新软件
sudoportinstallname
sudoportuninstallname
查看有更新的软件以及版本
portoutdated
升级可以更新的软件
sudoportupgradeoutdated
相关文章推荐
- Mac下安装nginx
- mac安装nginx
- Mac机器安装nginx
- Mac环境下Nginx+PHP+MySQL的安装与配置
- Mac 下 Nginx、MySQL、PHP-FPM 的安装配置
- 用macport安装nginx
- Mac 下 Nginx、MySQL、PHP-FPM 的安装配置
- mac 安装 nginx 环境
- Mac安装nginx
- MAC OS X 10.9 下 Nginx的安装笔记(为后续搞Nginx+Redis+Tomcat集群做准备)
- 在mac上安装nginx
- mac下安装nginx和php
- mac下安装nginx和php
- 在mac os x 10.9.2上安装nginx
- 在Mac OS X 10.9上安装nginx
- Mac OS Lion 下编译安装Nginx 1.0.12 + PHP 5.3.10 + Mysql 5.5.18 + Xdebug + PHPUnit
- MAC下安装nginx(转载)
- mac 上安装nginx并且配置conf文件
- mac编译安装nginx
- Mac10.9仅安装Nginx