ruby-on-rails-Ruby-在tmp / pids / thin.pid中找不到PID(Thin :: PidFileNotFound)

我正在尝试为我的应用开始精简,但是无法生成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文件:

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

更新:

现在我可以启动服务器了,但是几秒钟后进程自动消失了.表示几秒钟后我看不到启动服务器生成的pid.

解决方法:

lsof -wni tcp:1234

会给你进程ID

kill -9 PID

会杀死进程

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...