service [service] Start systemctl Start [Unit of the type] to start the service
# Start network.service start networking services systemctl
Service [service] STOP systemctl STOP [Unit of the type] out of service
# Stop STOP network.service network services systemctl
Service [service] restart systemctl restart [Unit of the type] to restart the service
# Network Service Restart systemctl restart network.service
addition or two systemctl parameter does not correspond with the service command parameters
status: parameter to view the service operation
reload: reload service, load the configuration file updated (Not all services support this parameter, such as network.service)
Application examples:
# Check the status of network services
systemctl status network.serivce
nginx php mysql commonly used commands
systemctl status nginx
systemctl start nginx
service nginx restart # restart Nginx
Service php-fpm restart # restart php-fpm
systemctl start mysqld # startup MySQL
systemctl Status MySQL mysqld # View state
systemctl stop mysqld # mysql close
systemctl enable mysqld #mysql boot
recommended article: