Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
/etc/profile缺少/sbin路径 最近发现apache mysql 开机不能自动启动
Experiences and Insight
745
views ·
2
replies ·
To
floor
Go
ajivanet
deepin
2017-08-30 17:58
Author
查了发现很多命令不能用 chkconfig
使用whereis 发现在 /sbin 里面,但是不能执行
所以在 /etc/profile 里面的 第一个else 里面追加了 :/sbin
命令恢复了, 重启电脑,apache mysql 都能正常开机自启动了。
仅供参考
Reply
Like 0
Favorite
View the author
All Replies
jingle
deepin
2017-08-30 18:22
#1
sudo apt-get install chkconfig
Reply
Like 0
View the author
DebuggerX
deepin
2017-08-30 18:53
#2
现在是用systemctl命令代替chkconfig了,所以默认没有chkconfig。。。
列出所有服务:systemctl list-unit-files
查看mysql服务:systemctl list-unit-files | grep mysql
开机启动mysql:systemctl enable mysql.service
禁止开机启动:systemctl disable mysql.service
运行mysql服务:systemctl start mysql.service
停止mysql服务:systemctl stop mysql.service
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
使用whereis 发现在 /sbin 里面,但是不能执行
所以在 /etc/profile 里面的 第一个else 里面追加了 :/sbin
命令恢复了, 重启电脑,apache mysql 都能正常开机自启动了。
仅供参考