6.3日音讯,Ubuntu安装最new版本Ng。Nginx("enginex")是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP代理服务器。Nginx是由IgorSysoev为俄罗斯访问量第二的Rambler.ru站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。2011年6月1日,nginx1.0.4发布。
1.添加key
[plain]
nginx_signing.key
apt-keyaddnginx_signing.key
2.创建/etc/apt/sources.list.d/nginx.list文件,内容如下:
[html]
raringnginx
raringnginx
3.更新及安装:
[plain]
apt-getupdate
apt-getinstallnginx
4.检查一下版本
[plain]
nginx-v
nginxversion:nginx/1.5.0
5.命令行
前面的安装在/etc/init.d/目录下创建了nginx脚本,该脚本支持几个命令参数:
[plain]
echo"Usage:$SCRIPTNAME{start|stop|status|restart|reload|force-reload|upgrade|configtest}">&2
非常好用。比如测试配置的参数:
[plain]
servicenginxconfigtest
nginx:theconfigurationfile/etc/nginx/nginx.confsyntaxisok
nginx:configurationfile/etc/nginx/nginx.conftestissuccessful
6.进程id
官方文档说:control.html
进程id文件默认在
[plain]
/usr/local/nginx/logs/nginx.pid
但实际上在nginx脚本文件中将其放在了
[plain]
/var/run/nginx.pid
7.编译选项,用-V可以查看编译nginx程序编译时的选项:
[plain]
nginx-V
nginxversion:nginx/1.5.0
builtbygcc4.7.3(Ubuntu/Linaro4.7.3-1ubuntu1)
TLSSNIsupportenabled
configurearguments:--prefix=/etc/nginx--sbin-path=/usr/sbin/nginx--conf-path=/etc/nginx/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--with-mail_ssl_module--with-file-aio--with-http_spdy_module--with-ipv6
大体上来说nginx主要用于反向加速代理而不是像squid那样做为常规代理服务器。Nginx的最大优势在于高负载情况下内存和CPU的低消耗。我不认为squid能给你带来比nginx更好的性能。
有没有人能给出一个完整的.conf配置文件来详细的解读一下怎么配置和测试IMAP模块,而不只是关于IMAP的只言片语啊?
依照[NginxImapProxyExample]开始你的配置.关于不同配置参数的具体信息,请查看[NginxMailCoreModule]页。