用户资源限制

我是centos7.6操作系统部署的单实例openguass数据库,在安装后,报错

2025-09-18 17:58:56.571 [unknown] [unknown] localhost 139960870468032 0[0:0#0] 0 [EXECUTOR] ACTION: Please refer to backend log for more details.

[2025-09-18 17:58:57.394][8574][gs_ctl]: done
[2025-09-18 17:58:57.394][8574][gs_ctl]: server started (/opt/software/openGauss/data/single_node)
import sql file
Would you like to create a demo database (yes/no)? yes
Load demoDB [school,finance] success.
[complete successfully]: You can start or stop the database server using:
gs_ctl start|stop|restart -D $GAUSSHOME/data/single_node -Z single_node

-bash: ulimit: open files: cannot modify limit: Operation not permitted
[omm@openguass simpleInstall]$

我在/etc/security/limits.conf末尾添加了

omm soft nofile 65535
omm hard nofile 65535

但是报错还是存在

我找了安装时的日志发现日志开头时有相关报错

在安装的时候,会自动往~/.bashrc文件写相关的环境变量

最后一行,omm操作系统用户没有权限执行,才会报错