我使用以下命令在Ubuntu 12.10上安装了Passenger和Nginx:passenger-install-nginx-module(在www.modrails.com/documentation/Users指导Nginx.html的指导下)。 当我遇到安装我的SSL证书的问题时,我发现像“Nginx -V”这样的命令行工具产生了以下输出:“程序'nginx'可以在以下软件包中find…”
更新:我已经成功地使用以下链接中的说明正确configurationSSL: https : //library.linode.com/web-servers/nginx/configuration/ssl
我仍然需要知道如何从命令行运行Nginx命令。 使用我安装到/etc/init.d/nginx的脚本启动和停止它没有问题。 nginx安装目录是/ opt / nginx。