Two types of services in Linux: services installed in the RPM package by default and services installed in the source package
After some software is installed on a computer, one or more services will appear in the system service management, such as Apache and VMware software, it can be started with the system startup. Of course, it can also be set to not start. When it is used, start it again (you can enter services in the running. msc directly open the service list), but some software is not generated after it is installed on the computer, such as our chat tool QQ.
In Linux, there are two types of services: one is the default RPM package installation service and the other is the source code package installation service.
By default, the RPM service is installed in the/etc/rc. d/init. d/file. When the service smb start is executed, the service searches for the smb service in this directory,
However, the services installed in the source code package are located at the location where you installed the source code package, and will not appear in the default location of the system (/etc/rc. d/init. d/), so you want to execute
When the source package service starts with the service name, the service cannot be found in/etc/rc. d/init. d/, and an error is returned.