postgresql(15)使用yum安装后环境变量信息
postgresql(15)使用yum安装后,其默认家目录,其环境变量信息如下1.家目录-bash-4.2$ whoami postgres -bash-4.2$ cd -bash-4.2$ pwd /var/lib/pgsql -bash-4.2$2.环境变量信息-bash-4.2$ ls -la total 44 drwx------ 3 postgres postgres 95 Dec 18 10:49 . drwxr-xr-x. 31 root root 4096 Sep 3 14:27 .. drwx------ 4 postgres postgres 51 Feb 26 2025 15 -rw------- 1 postgres postgres 14435 Dec 17 20:46 .bash_history -rwx------ 1 postgres postgres 282 Dec 17 20:36 .bash_profile -rw------- 1 postgres postgres 10166 Dec 18 11:12 .psql_history -rw------- 1 postgres postgres 6920 Dec 18 10:49 .viminfo -bash-4.2$ cat .bash_profile [ -f /etc/profile ] source /etc/profile #PGDATA按需更改,更改后执行source .bash_profile生效 #PGDATA=/var/lib/pgsql/15/data PGDATA=/pgdata export PGDATA # If you want to customize your settings, # Use the file below. This is not overridden # by the RPMS. [ -f /var/lib/pgsql/.pgsql_profile
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2448356.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!