Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gisEnv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐鸿
gisEnv
Commits
f9b52709
Commit
f9b52709
authored
Apr 02, 2022
by
徐鸿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 打开postgresql端口
parent
b07f774f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
postgresql.sh
postgresql.sh
+4
-0
No files found.
postgresql.sh
View file @
f9b52709
...
...
@@ -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-------------------------"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment