02.01.2016 Views

Linux

linux_admin_text-1.0.0_2

linux_admin_text-1.0.0_2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7 CentOS 7 <br />

7.2.8 <br />

systemctl enable <br />

chkconfig <br />

Web /usr/lib/systemd/system/httpd.service<br />

Web systemctl enable <br />

/etc/systemd/system/multi-user.target.wants <br />

<br />

multi-user.target <br />

SysV init /etc/init.d <br />

/etc/rc.d <br />

<br />

# systemctl enable httpd<br />

ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.<br />

target.wants/httpd.service'<br />

systemctl disable <br />

<br />

# systemctl disable httpd<br />

rm '/etc/systemd/system/multi-user.target.wants/httpd.service'<br />

7.2.9 systemd <br />

systemctl mask systemd <br />

<br />

/etc/systemd/system/httpd.service /dev/null <br />

<br />

Web systemd <br />

# systemctl mask httpd<br />

ln -s '/dev/null' '/etc/systemd/system/httpd.service'<br />

# systemctl start httpd<br />

Failed to issue method call: Unit httpd.service is masked.<br />

systemctl is-enabled httpd masked<br />

www.lpi.or.jp 203 (C) LPI-Japan

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!