这是我的 /config/puma.rb 文件:
path = Dir.pwd + "/tmp/puma/"
threads 0,20
environment "production"
daemonize true
bind "unix://" + path + "socket/puma.sock"
pidfile path + "pid/puma.pid"
state_path path + "pid/puma.state"
这是我尝试使用 pumactl 时的终端输出:
jinx@ubuntu:~/Documents/alpha$ pumactl -F config/puma.rb start
Puma starting in single mode...
* Version 2.6.0, codename: Pantsuit Party
* Min threads: 0, max threads: 20
* Environment: production
* Listening on unix:///home/jinx/Documents/alpha/tmp/puma/socket/puma.sock
There is already a server bound to: /home/jinx/Documents/alpha/tmp/puma/socket/puma.sock
jinx@ubuntu:~/Documents/alpha$ pumactl -F config/puma.rb status
allocator undefined for Proc
jinx@ubuntu:~/Documents/alpha$ pumactl -F config/puma.rb stats
allocator undefined for Proc
jinx@ubuntu:~/Documents/alpha$ pumactl -F config/puma.rb stop
allocator undefined for Proc
jinx@ubuntu:~/Documents/alpha$ pumactl -F config/puma.rb foo
Invalid command: foo
这个错误是什么意思?如何使用 pumactl 启动和停止应用程序服务器实例?