公司的web服务器要变更。
把原来的网站转移到另一台服务器上,配置好nginx的nginx.conf文件,到web目录启动mongrel
正常启动,但是访问不了,检查日志里PID文件,说明没有生成
停止mongrel
发生如下错误
www# mongrel_rails cluster::stop
ps: Process environment requires procfs(5)
ps: Process environment requires procfs(5)
already stopped port 8030
ps: Process environment requires procfs(5)
ps: Process environment requires procfs(5)
already stopped port 8031
ps: Process environment requires procfs(5)
ps: Process environment requires procfs(5)
already stopped port 8032
ps: Process environment requires procfs(5)
ps: Process environment requires procfs(5)
already stopped port 8033
后来一查,是转移的目录所有权是root:wheel
把目录的权限改为mongrel:mongrel
再启动没有问题
以其也遇到过这样的问题,自己忘了,今天特地写下来。