Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.7k views
in Technique[技术] by (71.8m points)

使用systemd启动mysql

mysql的官方文档
使用systemd启动服务器
为systemdtmpfiles功能添加配置文件 。该文件被命名 mysql.conf并放置在中 /usr/lib/tmpfiles.d

shell> cd /usr/lib/tmpfiles.d
shell> touch mysql.conf
shell> chmod 644 mysql.conf

将此配置信息添加到 mysql.conf文件中:

   d /usr/local/mysql/data 0750 mysql mysql  -

这个配置干什么用的?在百度上查了半天查不到...
感谢各位前辈


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

图片.png

译:在本例中,systemd将创建 /run/httpd/run/httpd/htcacheclean,如果它们还未存在,则将给定权限、uid和gid分配给它们。

更加完整的列表

图片.png

参考来源:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...