输入banner图图片脚本导航/分类

CentOS7安装mysql后无法启动服务,提示Unit not found

[Unit]
Description=MySQL Server
After=network.target
 
[Service]
ExecStart=/usr/bin/mysqld --defaults-file=/etc/mysql/my.cnf --datadir=/var/lib/mysql --socket=/var/run/mysqld/mysqld.sock User=mysql
Group=mysql
WorkingDirectory=/usr
 
[Install]
WantedBy=multi-user.target
技术图片

然后运行

systemctl daemon-reload
使用重启命令:

systemctl start mysql.service

CentOS7安装mysql后无法启动服务,提示Unit not found

标签:blank   server   提示   错误提示   ystemd   post   red   https   lib