Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solaris-svcs and svcadm commands

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Svcs

Description:

Is used to view the service status of the system

Parameters:

-a: list all the services in the system

-x: view services that have not been booted up

-d [ssh]: view the relationship of service dependencies

-D [ssh]: view dependent services

-l [ssh]: view the details of the service

II. Svcadm

Description:

Directly manage the start and stop of the system service, and can refresh the system state without restarting the service

Parameters:

Svcadm enable [ssh]: activate boot start ssh service, and start ssh service

Svcadm disable [ssh]: stop the ssh service and start without booting

Svcadm restart [ssh]: restart the ssh service

Eg:

Solaris starts ftp and telnet services

Inetd uniformly manages network services such as ftp,telnet in solaris

You can check the running status of the two services using the command svcs-a | grep ftp and svcs-a | grep telnet

If you return

Disable svc:/network/ftp:default

Disable svc:/network/telnet:default

Start the service

Svcadm enable svc:/network/ftp:default

Svcadm enable svc:/network/telnet:default

Out of Service

Svcadm disable svc:/network/ftp:default

Svcadm disable svc:/network/telnet:default

Restart the service

Svcadm restart svc:/network/ftp:default

Svcadm restart svc:/network/telnet:default

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report