$ sudo setsebool httpd_can_network_connect 1 -P
https://stackoverflow.com/questions/27435655/proxy-pass-isnt-working-when-selinux-is-enabled-why
$ sudo setsebool httpd_can_network_connect 1 -P
https://stackoverflow.com/questions/27435655/proxy-pass-isnt-working-when-selinux-is-enabled-why
is forbidden (13: Permission denied), client:
chcon -R --reference=/usr/share/nginx/html/ /home/html/
# 将默认目录的权限配置复制到新的目录里
Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.
MySQL 8.0启动报错,也是这个问题(已经chown了)
mysqld: File ‘./binlog.index’ not found (OS errno 13 – Permission denied)
chcon -R -t mysqld_db_t /mnt/mysql
参考页面:https://www.thegeekstuff.com/2016/05/move-mysql-directory/