· in the start menu, there is a sub-menu called System Settings, in that sub-menu there is another sub-menu called Server Settings, in there, their are a few things to setup a server, find one for HTTPD, there you can setup your HTTPD server settings and there should be another selection for "Services" with that you can start/stop/restart services that are running . · Method 2: Restart HTTPD Server Using Apachectl Command Script. Apache recommends using a control script to pass commands to the httpd process. To restart Apache in this manner, enter the following: sudo apachectl -k restart. To instruct the Apache service to terminate all child processes and itself, run the following command: apachectl -k stopEstimated Reading Time: 5 mins. Only the SysV init-style options are defined here. Other arguments are defined on the httpd manual page. start Start the Apache httpd daemon. Gives an error if it is already running. This is equivalent to apachectl -k start. stop Stops the Apache httpd daemon. This is equivalent to apachectl -k stop. restart Restarts the Apache httpd daemon. If the daemon is not running, it is .
You can use wget,curl or directly download from httpd homepage. After extracting the tar file. Go to extracted directory and configure httpd server../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr-util. After successful completion of above step. Now run the following commands to install httpd. make make install. Install the httpd-manual package: # yum install httpd-manual; Optional: By default, all clients connecting to the Apache HTTP Server can display the manual. To restrict access to a specific IP range, such as the /24 subnet, edit the /etc/httpd/conf.d/www.doorway.ru file and add the Require ip /24 setting to the directive. Enable the http service on startup with the below command. This will enable it for runlevels 2,3,4 5: # chkconfig httpd on. To start the httpd service: # service httpd start.
httpd - Apache Hypertext Transfer Protocol Server -k start|restart|graceful|stop|graceful-stop: Signals httpd to start, restart, or stop. Starting httpd using the apachectl control script sets the environmental variables in /etc/sysconfig/httpd and starts httpd. For this, you'll have to manually start the httpd process every time you want to use it. user@host $ sudo apachectl -k start Password: AH Warning.
0コメント