#5 楼 @zhangyuan 你好。我想问一下,那如果在 Production 的迁移,是执行什么指令的呢?
根据你上面的配置
sudo /etc/init.d/nginx start
启动nginx会出现无法将它stop的情况
就算执行sudo /etc/init.d/nginx stop显示已经停止
但是在次开启的时候,会出现80端口占用
railsu@li85-215:~$ sudo /opt/nginx/sbin/nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
需要通过 sudo /opt/nginx/sbin/nginx -s stop
来让 nginx 停止
请问是什么原因呢?
currently not installed. You can install it by typing:apt-get install ruby-rvm 你好。没有办法安装啊.请问是什么问题呢?
railsu@li85-215:~$ rvm use 1.9.2 default
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
railsu@li85-215:~$ exit
logout
root@li85-215:~# rvm use 1.9.3 default
The program 'rvm' is current