This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@rhel7 ~]# systemctl start httpd | |
[root@rhel7 ~]# systemctl stop httpd | |
[root@rhel7 ~]# systemctl restart httpd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@rhel7 ~]# systemctl list-unit-files --type service | |
UNIT FILE STATE | |
auditd.service enabled | |
autovt@.service disabled | |
avahi-daemon.service enabled | |
brandbot.service static | |
console-getty.service disabled | |
console-shell.service disabled | |
cpupower.service disabled | |
crond.service enabled | |
dbus-org.fedoraproject.FirewallD1.service enabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@rhel7 ~]# systemctl enable httpd | |
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service' | |
[root@rhel7 ~]# systemctl disable httpd | |
rm '/etc/systemd/system/multi-user.target.wants/httpd.service' |
沒有留言:
張貼留言