Книги автора: Fedora™ Unleashed, 2008 edition
/ Книги автора: Fedora™ Unleashed, 2008 edition
/ honorato bonafe
Книга: 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.
Похожие страницы
- Starting and Stopping Apache
- Using
- Controlling Apache with Fedora's chkconfig Command
- Apache Multiprocessing Modules
- 7. Macros: Standard Control Constructs
- Controlling Evaluation
- Appendix A. Detailed explanations of special commands
- Using Double Quotes to Resolve Variables in Strings with Embedded Spaces
- Drawbacks with restore
- Basics of the iptables command
- Commands
- Internet Service Providers who use assigned IP addresses