服务器升级之一 varnish 2.1.5、nginx 0.9.5 编译安装 

最近回家过年,回来后发现之前vps里面跑的很多软件都发布了新的版本,于是便打算安装跟进,陆续的停掉了一切服务,开始动手(先手动删除掉所有要更新软件的旧版本的文件,并备份)。

先是前段吧,
varnish 2.1.5 http://repo.varnish-cache.org/source/va ... 1.5.tar.gz

下载源码包,解压进入目录,
我的configure:
[root@PowerPC varnish-2.1.5]# ./configure \
> --prefix=/usr/local/varnish \
> --exec-prefix=/usr/local \
> --sysconfdir=/etc/sysconfig \
> --localstatedir=/var/run \
> --disable-largefile

检查依赖,有警告.

configure: WARNING: rst2man not found – not building man pages
configure: WARNING: won't look for sendfile() on i686-pc-linux-gnu


前一个,yum install python-docutils 解决。
后一个,直接无视.

make distclean,再次检查,没有问题。

接下来 make && make install.安装完成,并用备份的配置文件替换自动生成的。

varnish 完成,然后是
nginx 0.9.5 http://nginx.org/download/nginx-0.9.5.tar.gz

下载源码包,解压,进入目录
我的configure:
[root@PowerPC nginx-0.9.5]# ./configure \
> --prefix=/usr/local/nginx \
> --sbin-path=/usr/local/sbin/nginx \
> --conf-path=/etc/sysconfig/nginx/nginx.conf \
> --error-log-path=/var/log/nginx/error.log \
> --pid-path=/var/run/nginx/nginx.pid \
> --lock-path=/var/run/nginx/nginx.lock \
> --user=http \
> --group=web \
> --without-http_ssi_module \
> --without-http_auth_basic_module \
> --without-http_fastcgi_module \
> --without-http_uwsgi_module \
> --without-http_scgi_module \
> --http-log-path=/var/log/nginx/access.log \
> --http-client-body-temp-path=/tmp/nginx/request.tmp \
> --http-proxy-temp-path=/tmp/nginx/proxy.tmp \
> --without-mail_pop3_module \
> --without-mail_imap_module \
> --without-mail_smtp_module

检查依赖,没有任何问题.

目录结构和编译简介:
Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ md5: using system crypto library
+ sha1 library is not used
+ using system zlib library

nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/sbin/nginx"
nginx configuration prefix: "/etc/sysconfig/nginx"
nginx configuration file: "/etc/sysconfig/nginx/nginx.conf"
nginx pid file: "/var/run/nginx/nginx.pid"
nginx error log file: "/var/log/nginx/error.log"
nginx http access log file: "/var/log/nginx/access.log"
nginx http client request body temporary files: "/tmp/nginx/request.tmp"
nginx http proxy temporary files: "/tmp/nginx/proxy.tmp"

确认一下,都没错。
make && make install,编译安装.
完成后,用备份的配置文件替换掉新的即可。

nginx 也完成了.

hiawatha 没有新版本问世,不过上次安装的时候,有些目录错掉了。今天索性也重新安装下。

这次的configure:
[root@PowerPC hiawatha-7.4]# ./configure \
> --prefix=/usr/local/hiawatha \
> --exec-prefix=/usr/local \
> --sysconfdir=/etc/sysconfig \ (主要改的地方)
> --localstatedir=/var \ (主要改的地方)
> --disable-largefile \
> --disable-ipv6 \
> --disable-monitor \
> --disable-ssl

make && make install.
安装完成.
同样用备份的配置文件恢复下,就可以运行了。
[ ] ( 1913 次浏览 ) 永久链接 ( 3 / 2612 )

<< <上一页 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 下一页> >>