Commit b7e6b769 authored by 徐鸿's avatar 徐鸿

Update postgresql.sh 初始化数据库为中文字符集

parent f9b52709
......@@ -63,7 +63,7 @@ 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/local/pgsql/bin/initdb -D /usr/local/pgsql/data --locale=zh_CN.UTF-8 -E UTF-8"
su - postgres -c "/usr/gisdeploy/pgsql/bin/pg_ctl -D /usr/gisdeploy/pgsql/data -l logfile start"
......
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