In this tutorial i will explain, How we can start, stop service in CentOS/RHEL 7 and also how we can permanently on /off service at boot/startup time.
first run command to check service status, you can can service status using systemctl command .
Check service status
You can check any of service status with below command
# systemctl status NetworkManager
Samaple output:
Note: NetworkManager is service name, you can change with yours. as command output is showing service status is enable that means service is permanently on . It will automatically on at status. And as marked service is active . It means service is running at currently.
How to stop service in RHEL/CentOS 7
# systemctl stop NetworkManager
Again check status
sample output:
As above marked service is showing inactive. It means service service is not running currently.
Start service
# systemctl start NetworkManager
Restart service
# systemctl restart NetworkManager
How to permanently Off/Disable service at boot/Startup
# systemctl disable NetworkManager
Check service status
As above marked service is permanently disabled.
How to enable service at boot/Startup
# systemctl enable NetworkManager
first run command to check service status, you can can service status using systemctl command .
Check service status
You can check any of service status with below command
# systemctl status NetworkManager
Samaple output:
Note: NetworkManager is service name, you can change with yours. as command output is showing service status is enable that means service is permanently on . It will automatically on at status. And as marked service is active . It means service is running at currently.
How to stop service in RHEL/CentOS 7
# systemctl stop NetworkManager
Again check status
sample output:
As above marked service is showing inactive. It means service service is not running currently.
Start service
# systemctl start NetworkManager
Restart service
# systemctl restart NetworkManager
How to permanently Off/Disable service at boot/Startup
# systemctl disable NetworkManager
Check service status
As above marked service is permanently disabled.
How to enable service at boot/Startup
# systemctl enable NetworkManager
I gathered as much knowledge regarding to the Linux, web sever and database server from your site.Keep on updating with more interesting topic.
ReplyDeleteMoreover to recover the lost file from Linux Click on:
android data recovery review
launch android data recovery
backup and restore android apps and data
android backup app data
recover lost files
diskdigger pro file recovery