在CentOS中使用pgAdmin創建數據庫,可參考以下步驟:
sudo yum install postgresql-server postgresql-contrib
安裝PostgreSQL,用sudo yum install pgadmin4
安裝pgAdmin。sudo systemctl start postgresql
和sudo systemctl enable postgresql
啟動PostgreSQL服務,用sudo systemctl start pgadmin4-web.service
和sudo systemctl enable pgadmin4-web.service
啟動pgAdmin服務。sudo -u postgres psql
,在提示符下輸入ALTER USER postgres WITH PASSWORD 'your_password';
,將your_password
替換為實際密碼,然后輸入\q
退出。http://your_server_ip:5050
,用PostgreSQL用戶名和密碼登錄。