第一部:安装wegt python
sudo apt-get install wget nginx
第二下载nginx apache
wegt http://nginx.org/download/nginx-1.5.0.tar.gz curl
解压: ui
tar zxvf filename.tar.gz url
查看configer spa
./configer可是提示 ssl
c complier cc is not found get
是由于没有安装gcc,而后安装gcc openssl
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