您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
workerman服務治理系列之workerman服务(脚本)自启动(开机自启)(centos7環境下)
发布时间:2022-01-14 23:11:04编辑:雪饮阅读()
具體實現則是如配置在如下文件中:
[root@localhost ~]# cat /etc/rc.local
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.
touch /var/lock/subsys/local
/www/server/php/73/bin/php -c /www/server/php/73/etc/php.ini /www/wwwroot/workerman/index.php start -d
這是centos7環境下,其它環境未必相同,另外需要注意的就是若不生效,則考慮給/etc/rc.local以執行權限即chmod +x
关键字词:workerman,脚本,自启动,开机自启,centos7
相关文章
- workerman16进制与2进制字符串的转换(局限有点狭隘,應該
- http反向代理環境下获取真实ip(基於workerman)
- https在反向代理環境下获取真实ip(基於workerman實現)
- 基於workerman實現ws获取真實客戶端ip(反向代理環境下)
- workerman系列之nginx配置反向代理于workerman時候實
- workerman系列之tp5(thinkphp5)日志结合workerman使用
- workerman常见问题-php的几种回调写法-类的静态方法作
- workerman常见问题-php的几种回调写法-类方法作为回调
- workerman常见问题-php的几种回调写法-普通函数回调
- workerman作爲客戶端系列之socket5即s5代理搭建基於ce