系统中的nginx是这样安装的sudoapt-getinstallnginx安装了passenger后geminstallpassenger还需安装nginxmodule才能在nginx中配置使用它。在安装时passenger-install-nginx-module提示AutomaticallydownloadandinstallNginx?Nginxdoesn'tsupportloadablemodulessuchassomeotherwebserversdo,soinordertoinstallNginxwithPassengersupport,itmustberecompiled.Doyouwantthisinstallertodownload,compileandinstallNginxforyou?1.Yes:download,compileandinstallNginxforme.(recommended)Theeasiestwaytogetstarted.AstockNginx1.4.4withPassengersupport,butwithnootheradditionalthirdpartymodules,willbeinstalledforyoutoadirectoryofyourchoice.2.No:IwanttocustomizemyNginxinstallation.(foradvancedusers)ChoosethisifyouwanttocompileNginxwithmorethirdpartymodulesbesidesPassenger,orifyouneedtopassadditionaloptionstoNginx's'configure'script.Thisinstallerwill1)askyouforthelocationoftheNginxsourcecode,2)runthe'configure'scriptaccordingtoyourinstructions,and3)run'makeinstall'.Whicheveryouchoose,ifyoualreadyhaveanexistingNginxconfigurationfile,thenitwillbepreserved.【问题1】这样再次安装nginx的话,和原来的版本没有冲突吗?直接安装的nginx的启动方法是sudoservicenginxstartsudoservicenginxrestartsudoservicenginxstop通过passenger-install-nginx-module安装的nginx的启动方法是sudonginxsudonginx-sreloadsudonginx-sstop【问题2】为什么会有这样的区别呢?【问题3】在已经存在nginx的系统中,有其它方式安装passenger的nginxmodule吗?
慕容森
aluckdog
相关分类