nginx:相当于a2enmod是什么?

我正在从Apache2切换到nginx

nginx世界中的这些命令是什么?

sudo a2enmod ssl sudo a2enmod rewrite sudo a2enmod headers sudo a2enmod expires sudo a2enmod php5 

非常感谢,

因为Nginx模块在编译时被选中,所以没有任何等价的东西。 引用的Nginx文档将显示标准模块。 运行nginx -V将显示编译选项。 例如:

 $ nginx -V nginx version: nginx/0.7.61 built by gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4) configure arguments: --prefix=/usr/local --sbin-path=/usr/local/sbin --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-http_flv_module --with-http_ssl_module --with-http_stub_status_module 

作为一个侧面说明,a2enmod是一个Debian / Ubuntu的主题; 其他Linux发行版将以不同的方式启用Apache模块。