Commit f9b52709 authored by 徐鸿's avatar 徐鸿

Update 打开postgresql端口

parent b07f774f
......@@ -61,8 +61,12 @@ fi
alias pg_start='pg_ctl -D $PGDATA -l /usr/gisdeploy/pgsql/logfile start'
alias ps_stop='pg_ctl -D $PGDATA -l /usr/gisdeploy/pgsql/logfile stop'
echo "postgres init"
sudo firewall-cmd --zone=public --add-port=5432/tcp --permanent
su - postgres -c "/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data"
su - postgres -c "/usr/gisdeploy/pgsql/bin/pg_ctl -D /usr/gisdeploy/pgsql/data -l logfile start"
echo "---------------------------------------------------------------------------------------"
echo "---------------------------------------------------------------------------------------"
echo "----------------------------finish-------------------------"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment