*** 所有postgresql-15调整为postgresql-14,因为navivat/flyway不支持高版本 ***
1234567891011
# Install the repository RPM:sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm# Install PostgreSQL:sudo yum install -y postgresql15-server# Optionally initialize the database and enable automatic start:sudo /usr/pgsql-15/bin/postgresql-15-setup initdbsudo systemctl enable postgresql-15sudo systemctl start postgresql-15
123456789101112131415
sudo passwd postgres设置密码为: NewPassword su - postgres 登陆数据库psql -d template1 -c "ALTER USER postgres WITH PASSWORD 'NewPassword';" 设置数据库密码 psql postgres 登陆使用
123456789101112131415161718192021222324252627
1. nginx默认不支持streamyum install nginx-all-modulescd /var/nginx/confmkdir /etc/nginx/tcp.dpostgresql.streamstream { upstream postgresql { server 127.0.0.1:5432; } server { listen 6033; proxy_pass postgresql; }}nginx confevents { worker_connections 1024;}include /etc/nginx/conf.d/*.stream;
— Jun 2, 2023
Made with Hexo.js at jiliapp. 蜀ICP备2023017116号-1