• #5 楼 @zhangyuan 你好.我想问一下,那如果在 Production 的迁移,是执行什么指令的呢?

  • #1 楼 @bwlinux 好的.问题已经解决,相当谢谢~^^

  • #25 楼 @stephen 第一个问题已经解决.重启后就好了.谢谢

    #26 楼 @hisea 是的.被占用,问题就是被 nginx 所占用了.使用 sudo /etc/init.d/nginx stop 后,通过 IP 地址,依然可以访问网址,说明 nginx 并未被关掉.需要通过 sudo /opt/nginx/sbin/nginx -s stop,nginx 才可以停止,通过该命令后,访问就是无法访问.所以 sudo /etc/init.d/nginx stop 似乎不知道出于什么问题,而没有作用了?

    #27 楼 @ywencn passenger+nginx

  • 根据你上面的配置

    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