Книга: Fedora™ Unleashed, 2008 edition

Controlling Apache with Fedora's service Command

Controlling Apache with Fedora's service Command

Instead of directly calling the /etc/rc.d/init.d/httpd script, you can use Red Hat's service command to start, stop, and restart Apache. The service command is used with the name of a service (listed under /etc/rc.d/init.d) and an optional keyword:

# service <name_of_script> <option>

For example, you can use service with httpd and any option discussed in the previous section, like so:

# service httpd restart

This restarts Apache if it's running or starts the server if it isn't running.

Оглавление книги


Генерация: 1.064. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз