[root@我 html]# semanage fcontext -a -t httpd_exec_t /usr/sbin/nginx
[root@我 html]# semanage fcontext -a -t httpd_var_run_t /var/run/nginx.pid
[root@我 html]# semanage fcontext -a -t httpd_log_t "/var/log/nginx(/.*)?"
libsemanage.dbase_llist_query: could not query record value (No such file or directory).
[root@我 html]# semanage fcontext -a -t httpd_var_lib_t "/var/lib/nginx(/.*)?"
libsemanage.dbase_llist_query: could not query record value (No such file or directory).
[root@我 html]# semanage fcontext -a -t httpd_config_t "/etc/nginx(/.*)?"
libsemanage.dbase_llist_query: could not query record value (No such file or directory).
/etc/nginx(/.*)? all files system_u:object_r:httpd_config_t:s0
/var/run/nginx.* all files system_u:object_r:httpd_var_run_t:s0
/var/lib/nginx(/.*)? all files system_u:object_r:httpd_var_lib_t:s0
/var/log/nginx(/.*)? all files system_u:object_r:httpd_log_t:s0
/usr/share/nginx/html(/.*)? all files system_u:object_r:httpd_sys_rw_content_t: s0
/var/opt/rh/rh-nginx18/log(/.*)? all files system_u:object_r:httpd_log_t:s0
/etc/opt/rh/rh-nginx18/nginx(/.*)? all files system_u:object_r:httpd_config_t:s0
/usr/lib/systemd/system/nginx.* regular file system_u:object_r:httpd_unit_file_t:s0
/var/opt/rh/rh-nginx18/lib/nginx(/.*)? all files system_u:object_r:httpd_var_lib_t:s0
/var/opt/rh/rh-nginx18/run/nginx(/.*)? all files system_u:object_r:httpd_var_run_t:s0
/usr/sbin/nginx regular file system_u:object_r:httpd_exec_t:s0
The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php
如何解決所謂的文件權限不一致問題呢?