To see which services are running, we are going to use the service keyword
(/usr/sbin/service)
Its almost the same way in all Linux Platforms.
In CentOS, its like this
service < option > | --status-all | [ service_name [ command | --full-restart ] ]
> service --status-all | grep postgres
postgresql-9.4 (pid 31632) is running...
To restart a service
service application_name restart
> service postgresql restart
(/usr/sbin/service)
Its almost the same way in all Linux Platforms.
In CentOS, its like this
service < option > | --status-all | [ service_name [ command | --full-restart ] ]
postgresql-9.4 (pid 31632) is running...
To restart a service
service application_name restart
> service postgresql restart
0 comments:
Post a Comment