|
楼主 |
发表于 2023-3-30 16:57:40
|
显示全部楼层
设为全局后,还是打不开,
命令如下
[root@C2]# ln -svf /www/server/php/74/bin/php /usr/bin/php
‘/usr/bin/php’ -> ‘/www/server/php/74/bin/php’
[root@C2]# which php
/usr/bin/php 查找到文件后,发现文件30多M,下图为文件大小截图
后续supervisor启动报错如下
2023-03-30 08:53:30,818 INFO RPC interface 'supervisor' initialized
2023-03-30 08:53:30,818 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-03-30 08:53:30,820 INFO daemonizing the supervisord process
2023-03-30 08:53:30,821 INFO supervisord started with pid 1829
2023-03-30 08:53:31,828 INFO spawned: 'xx' with pid 1830
2023-03-30 08:53:33,267 WARN exited: xx (exit status 1; not expected)
2023-03-30 08:53:34,272 INFO spawned: 'xx' with pid 1853
2023-03-30 08:53:35,714 WARN exited: xx (exit status 1; not expected)
2023-03-30 08:53:37,719 INFO spawned: 'xx' with pid 1875
2023-03-30 08:53:39,222 WARN exited: xx (exit status 1; not expected)
配置文件如下
[program:xx]
command=php /www/wwwroot/xx.com/artisan schedule:run
directory=/www/wwwroot/xx.com/
autorestart=true
startsecs=3
startretries=3
stdout_logfile=/www/server/supervisor/log/xx.out.log
stderr_logfile=/www/server/supervisor/log/xx.err.log
stdout_logfile_maxbytes=2MB
stderr_logfile_maxbytes=2MB
user=root
priority=999
numprocs=1
process_name=%(program_name)s
|
|