centos 7 systemctl mysql配置文件

[Unit]
Description=MySQL Server
After=network.target
After=syslog.target

[Install]
WantedBy=multi-user.target

[Service]
User=mysql
Group=mysql

Type=forking

# Execute pre and post scripts as root
PermissionsStartOnly=true

# Start main service
ExecStart=/usr/sbin/mysqld --daemonize

ExecStop=kill -s -QUIT $MAINPID

Restart=on-failure

RestartPreventExitStatus=1

PrivateTmp=false

转载请注明来源:新一 » centos 7 systemctl mysql配置文件

赞 (0) 评论 (0) 分享 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址