Solaris service operations

Source: Internet
Author: User
ServiceManagementFacility (SMF) is a software service management tool used in Solaris10 and later solaris operating systems. SMF starts, stops, and manages services based on service relevance, and is compatible with existing services... the Service Management Facility (SMF) of the solaris Service is a software Service Management tool used in Solaris 10 and later versions of the Solaris operating system. SMF starts, stops, and manages services based on service relevance, and is compatible with existing management habits (such as startup scripts ). For readers who have used Windows, SMF functions are similar to "services" in "control panel". for those who have used Linux and Unix, this function is partially replaced by/etc/rc *. d and the super server inetd/xinetd function. Introduction to SMF features when a management error, software defect, or hardware defect causes the service program to stop abnormally, SMF can automatically restart the service in a certain order. You can use the svcs command to view all the services, but use the svcadm and svccfg commands to manage all the services. Run the svcs-p command to view other services associated with this service. With the service snapshot settings, you can easily back up and restore services. Through the svcs-x command, you can easily debug the service and make each service have its own fixed log. All services can be started and closed through svcadm. Non-root users with corresponding roles can also start, modify, and close services. The SFM Service Identifier (Fault Management Resource Identifier) refers to the name of the service instance. For example, the rlogin service uses the following FMRI: svc:/network/login: rlogin. Similarly, similar FMRI also has svc:/system-log: default. The status of the SMF service status service includes the following types: the status indicates that the degraded service has been started, but runs in a restricted status. The disabled service is disabled. The legacy_run service cannot be managed by SMF, but can be monitored by SMF. Maintenance status. This service has a large number of errors and should be repaired by system maintenance personnel. The offline service has been started but is offline. The online service has been started and is running online. Uninitialized is not initialized yet. The following describes how to use SMF through several specific instances. You must first have the root permission for these operations. (0) obtain the root permission # su (enter your root password here .) (1) view the status of all services # svcs-a (2) view the status of the sendmail service # svcs sendmail # svcs-l sendmail (3) check the status of other services that sendmail is dependent on # svcs-d sendmail (4) disable sendmail # svcadm disable sendmail (5) check the status of the sendmail service again # svcs sendmail # svcs-l sendmail (6) start the sendmail service # svcadm enable sendmail (8) check the status of the sendmail service again # svcs sendmail # svcs-l sendmail (9) restart the sendmail service # svcadm restart sendmail practice SSH is a protocol for encrypting remote transmission, It can be used to log on to a remote server. What is different from the commonly used telnet is that the information transmitted through SSH is encrypted, so it is not easy to be intercepted and cracked by third parties. SSH servers and clients are provided in most Unix/Linux distributions, as is OpenSolaris Developer Preview. By default, the SSH service is enabled in OpenSolaris Developer Preview. Run the svcs command to check the status of the service: # scvs ssh if the SSH service is enabled, we can connect to the local machine through SSH on the command line. # If there is no accident with ssh localhost, we should be able to see the prompt asking you to enter the password. This is because SSH users use your current user name as the login user name in short supply, so you only need to provide your login password. Now we close the SSH service and check the service status: # svcadm disable ssh # svcs ssh. we can see that the SSH service has been disabled. If we try to connect to the local machine through SSH again, the connection will fail due to timeout. # Ssh localhost now we enable the SSH service, and then check the service status: # svcadm enable ssh # svcs ssh, we can see that the SSH service has been used. If we try to connect to the local machine through SSH again, we will see a prompt asking for a password. # Ssh localhost
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.