-
-
Save svlasov/aa4d915c978f1e7b9e86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Install Nginx for Cent OS 32bit | |
# ex) FC2 VPS | |
# | |
# | |
# If show under error the message when execute ./configure | |
# | |
# > 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. | |
# | |
$ yum install yum install pcre-devel.i386 | |
$ ./configure --with-http_gzip_static_module --conf-path=/etc/nginx.conf --pid-path=/var/log/nginx.pid --lock-path=/var/lock/ --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/tmp/client_body_temp --http-proxy-temp-path=/tmp/proxy_temp --http-fastcgi-temp-path=/tmp/fastcgi_temp --prefix=/usr/ --sbin-path=/usr/sbin --with-http_ssl_module | |
# | |
# Result | |
# | |
# Configuration summary | |
# + using system PCRE library | |
# + using system OpenSSL library | |
# + md5: using OpenSSL library | |
# + sha1 library is not used | |
# + using system zlib library | |
# | |
# nginx path prefix: "/usr/" | |
# nginx binary file: "/usr/sbin" | |
# nginx configuration prefix: "/etc" | |
# nginx configuration file: "/etc/nginx.conf" | |
# nginx pid file: "/var/log/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/client_body_temp" | |
# nginx http proxy temporary files: "/tmp/proxy_temp" | |
# nginx http fastcgi temporary files: "/tmp/fastcgi_temp" | |
# | |
# | |
make && make install | |
# | |
# Start nginx | |
# | |
/usr/sbin/nginx | |
# | |
# Oops ... | |
# | |
# [emerg]: unexpected end of file, expecting ";" or "}" in /etc/mime.types:517 | |
# | |
cp ${srcdir}/conf/mime.types /etc/mine.types | |
# | |
# test configuration | |
# | |
/usr/sbin/nginx -t | |
# the configuration file /etc/nginx.conf syntax is ok | |
# configuration file /etc/nginx.conf test is successful | |
# | |
# start | |
# | |
/usr/sbin/nginx | |
# | |
# No output is success.... | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment