本帖最后由 堡塔运维香菜卷 于 2023-8-16 15:33 编辑
宝塔安装的nginx开机无法自启动
宝塔安装的nginx开机无法自启动
宝塔安装的nginx开机无法自启动
/etc/init.d/nginx start 启动服务
service nginx stop 停止服务
使用上面这俩种方式都能够控制nginx的停止和运行
使用chkconfig nginx on也提示成功将Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.
一系列操作下来nginx仍然开机无法自动启动
使用chkconfig --list 查询没有看到nginx这一项
帮忙解答一下谢谢
( nginx的运行是正常的,开机后必须手动启动,没有提示任何报错)
|
|