我试图开始精简我的应用程序,但随后pid
无法生成:
$ thin -C /var/www/project_path/current/config/myproject.testing.yml start
现在我无法阻止它,因为没有 pid:
$ thin -C /var/www/project_path/current/config/myproject.testing.yml stop
/home/usr/.rvm/gems/ruby-1.9.2-p180@api/gems/thin-1.5.1/lib/thin/daemonizing.rb:131:in `send_signal': Can't stop process, no PID found in tmp/pids/thin.pid (Thin::PidFileNotFound)
这是yml
file:
pid: /home/usr/htdocs/testing/myproject/shared/pids/thin.pid
rackup: config.ru
log: /home/usr/htdocs/testing/myproject/shared/log/thin.log
timeout: 30
port: 1234
max_conns: 1024
chdir: /home/usr/htdocs/testing/myproject/current
max_persistent_conns: 128
environment: testing
address: 127.0.0.1
require: []
daemonize: true
update:
现在我可以启动服务器,但过了一段时间seconds
进程自动消失;意味着我看不到pid
这是通过几秒钟后启动服务器生成的。
lsof -wni tcp:1234
会给你进程ID
kill -9 PID
会杀死进程
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)