我正在尝试在ubuntu20.04上安装Openmaint。我快到最后一关了,我解决不了这个问题。
在openmaint数据库配置页面,我可以成功地连接到数据库,但随后无法保存database.conf文件。这是错误
将配置文件保存到名称空间= /var/lib/tomcat9/conf/openmaint/database.conf,(只读文件系统)引起的/var/lib/tomcat9/conf/openmaint/database.conf,:/var/lib/tomcat9 9/conf/openmaint/database.conf(只读文件系统)引起的文件中。
该文件确实存在,并且已经配置了正确的变量。Tomcat用户绝对有写权限。如果删除该文件,只会收到有关只读文件系统的错误。
有人能帮忙吗?
发布于 2021-01-31 21:37:39
非常感谢!我将保留我对tomcat服务文件所做的更改:
# Security
User=tomcat
Group=tomcat
PrivateTmp=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
CacheDirectory=tomcat9
CacheDirectoryMode=750
ProtectSystem=strict
ReadWritePaths=/etc/tomcat9/Catalina/
ReadWritePaths=/var/lib/tomcat9/webapps/
ReadWritePaths=/var/lib/tomcat9/conf/ <---- ADDED
ReadWritePaths=/var/log/tomcat9/https://serverfault.com/questions/1051189
复制相似问题