ubuntu编译安装nginx....心得
2013-05-08 00:00
274 查看
第一部:安装wegt
sudo apt-get install wget
第二下载nginx
wegt http://nginx.org/download/nginx-1.5.0.tar.gz
解压:
tar zxvf filename.tar.gz
查看configer
./configer但是提示
c complier cc is not found
是因为没有安装gcc,然后安装gcc
sudo apt-get install gcc
在执行./configure
但是:报错./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
解决办法是:
sudo aptitude install libpcre3-dev
安装make
sudo apt-get install make
啊,发现好多依赖包需要安装,搜了一下安装常用的依赖包
2. 安装其他依赖包:
sudo apt-get install g++ curl libssl-dev apache2-utils gcc make automake python perl
sudo apt-get install libpcre3 libpcre3-dev
你可能还需要安装
sudo apt-get install openssl libssl-dev
OK
下面我们开始make
sudo make
然后make install
sudo make install
sudo apt-get install wget
第二下载nginx
wegt http://nginx.org/download/nginx-1.5.0.tar.gz
解压:
tar zxvf filename.tar.gz
查看configer
./configer但是提示
c complier cc is not found
是因为没有安装gcc,然后安装gcc
sudo apt-get install gcc
在执行./configure
但是:报错./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
解决办法是:
sudo aptitude install libpcre3-dev
安装make
sudo apt-get install make
啊,发现好多依赖包需要安装,搜了一下安装常用的依赖包
2. 安装其他依赖包:
sudo apt-get install g++ curl libssl-dev apache2-utils gcc make automake python perl
sudo apt-get install libpcre3 libpcre3-dev
你可能还需要安装
sudo apt-get install openssl libssl-dev
OK
下面我们开始make
sudo make
然后make install
sudo make install
相关文章推荐
- Ubuntu14.04(从Nginx官方源)安装Nginx稳定版预编译包
- ubuntu 编译安装nginx
- UBuntu 编译安装Nginx服务
- ubuntu 12.04 编译安装 nginx
- ubuntu编译安装PHP5.4.0+Nginx(FPM/FastCGI)
- Ubuntu 14.10下源码编译安装Nginx 1.8.0
- ubuntu 12.04下编译安装nginx-1.9.3
- Ubuntu 编译安装Nginx服务
- Ubuntu下nginx编译安装参数配置
- ubuntu简单编译安装nginx
- 【ubuntu】编译安装nginx及所支持库
- 编译安装nginx [Ubuntu]
- Ubuntu下自动编译安装Nginx、Mysql、PHP、Memcache、eaccelerator
- ubuntu16.04服务器安装编译nginx
- Ubuntu编译安装nginx,php,mysql
- Ubuntu 17.04 编译安装 Nginx 1.9.9 配置 https 免费证书
- Ubuntu下nginx的编译与安装
- ubuntu 下编译安装 mysql php nginx 及常见错误 (持续添加)
- ubuntu编译安装nginx
- [转]Ubuntu 11.10编译安装nginx、PHP 5.3.8、mysql