时间:2021-07-01 10:21:17 帮助过:2人阅读
This command installs the PostgreSQL server and various other packages.
If we install the PostgreSQL database from packages, it is automatically added to the start up scripts of the operating system. If we are only learning to work with the database, it is unnecessary to start the database each time we boot the system. The above command removes any system startup links for the PostgreSQL database.
We check if the PostgreSQL server is running. If not, we need to start the server.
On Ubuntu Linux we can start the server with the service postgresql start command.
We use the service postgresql stop command to stop the PostgreSQL server.
$ sudo service postgresql restart
Stopping postgresql-9.5 service: [ OK ]
Starting postgresql-9.5 service: [ OK ]
We use the service postgresql restart command to restart the PostgreSQL server.
PostgreSQL(Linux)安装、启动、停止、重启
标签: