- serversmanVPSへのインストールメモ
TODO
- sudo yum -y install pcre-devel
- sudo yum install openssl-devel
- sudo wget http://sysoev.ru/nginx/nginx-0.8.53.tar.gz
- sudo tar zxvf nginx-0.8.53.tar.gz
- sudo ./configure
結果
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/nginx/sbin/nginx" nginx configuration prefix: "/usr/local/nginx/conf" nginx configuration file: "/usr/local/nginx/conf/nginx.conf" nginx pid file: "/usr/local/nginx/logs/nginx.pid" nginx error log file: "/usr/local/nginx/logs/error.log" nginx http access log file: "/usr/local/nginx/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp"
- sudo make
- sudo make install
なんか警告
objs/src/os/unix/ngx_process.o: In function `ngx_process_get_status':
/usr/local/src/nginx-0.7.67/src/os/unix/ngx_process.c:487: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/usr/local/src/nginx-0.7.67/src/os/unix/ngx_process.c:487: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
make[1]: Leaving directory `/usr/local/src/nginx-0.7.67'
とりあえず起動
停止sudo /usr/local/nginx/sbin/nginx
sudo /usr/local/nginx/sbin/nginx -s quit
conf
/usr/local/nginx/conf/nginx.conf
参考