Commit f15e1933 authored by 徐鸿's avatar 徐鸿

modify

parent 2785dd68
#!/bin/bash #!/bin/bash
cp ./postgresql-10.5.tar.gz /usr/gisdeploy mv ./postgresql-10.5.tar.gz /usr/gisdeploy
cd /usr/gisdeploy cd /usr/gisdeploy
tar zxvf postgresql-10.5.tar.gz tar zxvf postgresql-10.5.tar.gz
echo "pgsql tar sucess" echo "pgsql tar sucess"
...@@ -61,6 +61,7 @@ fi ...@@ -61,6 +61,7 @@ fi
alias pg_start='pg_ctl -D $PGDATA -l /usr/gisdeploy/pgsql/logfile start' 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' alias ps_stop='pg_ctl -D $PGDATA -l /usr/gisdeploy/pgsql/logfile stop'
echo "postgres init" echo "postgres init"
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" su - postgres -c "/usr/gisdeploy/pgsql/bin/pg_ctl -D /usr/gisdeploy/pgsql/data -l logfile start"
echo "---------------------------------------------------------------------------------------" echo "---------------------------------------------------------------------------------------"
echo "---------------------------------------------------------------------------------------" echo "---------------------------------------------------------------------------------------"
......
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