Commands rau pib Apache ntawm Linux

Yog hais tias koj tus neeg siv Linux qhov Web Server nres, koj siv tau cov lus txib hais kom ua kom nws rov khiav dua. Tsis muaj dab tsi yuav tshwm sim yog hais tias tus neeg rau zaub mov twb pib tau thaum cov lus txib tseg, los sis koj yuav pom ib qho lus yuam kev xws li " Apache web server twb khiav lawm. "

Yog hais tias koj sim rau nruab Apache thiab tsis yog pib rau nws, saib peb phau ntawv qhia txog kev nruab Apache rau Linux . Saib seb yuav ua li cas rau Updated 10/22/07 / f.Triplett tus neeg ua haujlwm Apache web yog tias koj xav tso hauv Apache thiab pib ua nws rov qab.

Yuav pib li cas rau Apache Web Server

Yog tias Apache nyob rau hauv koj lub cav hauv zos, koj tuaj yeem khiav cov lus txib li no, lossis lwm tus koj yuav tsum mus rau tej thaj chaw deb rau cov neeg siv SSH lossis Telnet.

Piv txwv, ssh root@thisisyour.server.com yuav SSH rau hauv Apache server.

Cov kauj ruam rau pib Apache yog me ntsis txawv nyob ntawm koj version of Linux:

Rau Red Hat, Fedora, thiab CentOS

Versions 4.x, 5.x, 6.x, lossis tshaj saud yuav tsum siv cov lus txib no:

$ sudo pab httpd pib

Siv qhov lus txib no rau versions 7.x lossis tshiab dua:

$ sudo systemctl pib httpd.service

Yog cov tsis ua haujlwm, sim ua raws li cov lus qhia no:

$ sudo /etc/init.d/httpd pib

Debian thiab Ubuntu

Siv qhov kev hais kom ua rau Debian 8.x lossis newer thiab Ubuntu 15.04 thiab saum toj no:

$ sudo systemctl pib apache2.service

Ubuntu 12.04 thiab 14.04 tej zaum yuav xav tau cov lus txib no:

$ sudo pib apache2

Yog cov tsis ua hauj lwm, sim ib qho ntawm cov no:

$ sudo /etc/init.d/apache2 pib $ sudo kev pab pib apache2

Generic Start Ua Ntej

Cov generic commands yuav tsum pib Apache ntawm txhua lub Linux faib:

$ sudo apachectl pib $ sudo apache2ctl pib $ sudo apachectl -f /path/to/your/httpd.conf $ sudo apachectl -f /usr/local/apache2/conf/httpd.conf