Initial Settings : Configure Services2023/12/14 |
To see services status or enable/disable services, Configure like follows.
|
|
[1] | Display services. |
# display list of services that are enabled root@dlp:~ # service -e /etc/rc.d/hostid /etc/rc.d/zpool /etc/rc.d/zpoolupgrade /etc/rc.d/zpoolreguid /etc/rc.d/zvol /etc/rc.d/hostid_save /etc/rc.d/kldxref /etc/rc.d/zfsbe /etc/rc.d/zfs ..... ..... # list all services root@dlp:~ # service -l DAEMON FILESYSTEMS LOGIN NETWORKING SERVERS accounting adjkerntz apm auditd auditdistd automount ..... ..... |
[2] | To enable or disable services, configure as follows. |
# for example, stop sshd service root@dlp:~ # service sshd stop Stopping sshd. Waiting for PIDS: 727.
root@dlp:~ #
vi /etc/rc.conf # disable sshd and turn off auto-starting sshd_enable=" NO "
# for example, enable ntpd service and turn on auto-starting root@dlp:~ # vi /etc/rc.conf # add to last line ntpd_enable="YES"
# start ntpd service root@dlp:~ # service ntpd start Security policy loaded: MAC/ntpd (mac_ntpd) Starting ntpd. |
Sponsored Link |