Ubuntu13.04 install the latest Nginx version

Source: Internet
Author: User
Ubuntu13.04 install the latest Nginx1. add key [plain] wget http://nginx.org/keys/nginx_signing.key Apt-keyaddnginx_signing.key2. create/etc/apt/sources. list. d/nginx. list file with the following content: [html] d Ubuntu 13.04 install the latest Nginx 1. add key [plain] wget http://nginx.org/keys/nginx_signing.key Apt-key add nginx_signing.key 2. create the/etc/apt/sources. list. d/nginx. list file with the following content: [html] deb http://nginx.org/packages/mainline/ubuntu/ Raring nginx deb-src http://nginx.org/packages/mainline/ubuntu/ Raring nginx 3. update and install: [plain] apt-get update apt-get install nginx 4. check the [plain] nginx-v nginx version: nginx/1.5.0 5. install the command line in/etc/init. d/The nginx script is created in the directory. the script supports several command parameters: [plain] echo "Usage: $ SCRIPTNAME {start | stop | status | restart | reload | force-reload | upgrade | configtest} "> & 2 is very useful. For example, the configuration parameter [plain] service nginx configtest nginx: the configuration file/etc/nginx. conf syntax is OK nginx: configuration file/etc/nginx. conf test is successful 6. the process id official document says: http://nginx.org/en/docs/control.html The process id file is in [plain]/usr/local/nginx/logs/nginx by default. pid is actually put in the nginx script file [plain]/var/run/nginx. pid 7. compilation options. you can use-V to view the compilation options of the nginx program: [plain] nginx-V nginx version: nginx/1.5.0 built by gcc 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) tls sni support enabled configure arguments: -- prefix =/etc/nginx -- sbin-path =/usr/sbin/nginx -- conf-path =/etc/nginx. conf -- error-log-path =/var/log/nginx/error. log -- http-log- Path =/var/log/nginx/access. log -- pid-path =/var/run/nginx. pid -- lock-path =/var/run/nginx. lock -- http-client-body-temp-path =/var/cache/nginx/client_temp -- http-proxy-temp-path =/var/cache/nginx/proxy_temp -- http- fastcgi-temp-path =/var/cache/nginx/fastcgi_temp -- http-uwsgi-temp-path =/var/cache/nginx/uwsgi_temp -- http-scgi-temp-path = /var/cache/nginx/scgi_temp -- user = nginx -- group = nginx -- with-http_ssl _ Module -- with-http_realip_module -- with-http_addition_module -- with-http_sub_module -- with-http_dav_module -- with-http_flv_module -- with-http_mp4_module -- with-http_gunzip_module -- with-http_gzip_static_module -- with-http_random_index_module -- with-http_secure_link_module -- with-http_stub_status_module -- with-mail_ssl_module -- with-mail -- with-http_spdy_module -- with-file-aio -- with-ipv6 -- basics enough, if you want If debug logs are enabled, this version does not exist. Compile Nginx by yourself and use the following parameters: -- with-debug
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.