Install the latest Nginx version in Ubuntu 13.04. add key [plain] wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key 2. create/etc/apt/sources. list. d/nginx. list file, the content is as follows: [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. life Install the preceding commands 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 official process id document says: http://nginx.org/en/docs/control.html's idfile is stored in [plain]/usr/local/nginx/logs/nginx. 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_mod Ule -- with-http_gzip_static_module -- with-http_random_index_module -- with-http_secure_link_module -- with-http_stub_status_module -- with-mail -- with-mail_ssl_module -- with-file-aio -- with-http_spdy_module -- The with-ipv6 is basically enough, not this version if you want to open debug logs. Compile Nginx by yourself and use the following parameters: -- with-debug