sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
sudo apt-get install -y apt-transport-https ca-certificates
//命令可能过时
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger yakkety main > /etc/apt/sources.list.d/passenger.list'
sudo apt-get update
sudo apt-get install -y nginx-extras passenger
vi /etc/nginx/nginx.conf //去掉# `# include /etc/nginx/passenger.conf;`
sudo service nginx restart
//check
sudo /usr/bin/passenger-config validate-install
sudo /usr/sbin/passenger-memory-stats
来源:
安装文档
网友评论