Apache ゃ潟鴻若Linux罕膀膩

maya
篁ャApacheゃ潟鴻若潟泣若壕儀膣剛

 

Apache 鐚httpd鐚

nao
Apachec鐚

maya
ApacheWeb泣若鴻純с≪1ゃ

nao
篏帥鐚

maya
紊Web泣若Apacheф膀

nao
cゃ潟鴻若鐚

maya
篁yum篏帥膣剛Linux泣若篋ゃ潟帥若・膓с倶

nao
篁羈鴻鐚

maya
CentOS7Apacheゃ潟鴻若CentOS6篁ュ篏潟潟違

 

 

 

 

篋篏罐

maya
ゃ潟鴻若Apache 若吾с潟腆肴
# yum info httpd
茯粋昭違ゃ:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
純宴若
 : httpd
≪若c : x86_64
若吾с : 2.4.6
若 : 67.el7.centos.6
絎拷 : 2.7 M
吾 : updates/7/x86_64
荀膣 : Apache HTTP Server
URL : http://httpd.apache.org/
ゃ祉潟 : ASL 2.0
茯 : The Apache HTTP Server is a powerful, efficient, and
 : extensible web server.

nao
箴с Apache 2.4.6 ゃ潟鴻若

maya
<ゃ≪若茵腓冴<祉若吾茵腓冴翫

 

ゃ潟鴻若

maya
Apache ゃ潟鴻若
# yum -y install httpd
茯粋昭違ゃ:fastestmirror, langpacks
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00

祉祉祉筝ャ祉祉

箴絖ч∫cゃ潟鴻若障:
 apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7
 httpd-tools.x86_64 0:2.4.6-67.el7.centos.6 mailcap.noarch 0:2.1.41-2.el7

絎篋障!
nao
yum-y激с潟ゃ潟鴻若筝絲障yes膈

 

ゃ潟鴻若腆肴

maya
Apache ゃ潟鴻若腆肴
# httpd -v
 Server version: Apache/2.4.6 (CentOS)
 Server built: Oct 19 2017 20:39:16
nao
若吾с潟茵腓冴違ゃ潟鴻若

 

泣若壕儀

maya
Apache泣若鴻莎桁
# systemctl start httpd
nao
systemctl潟潟ц儀泣若合倶

 

泣若合∈茯

maya
篁ヤ潟潟Apache 泣若合倶腆肴
# systemctl status httpd
 httpd.service - The Apache HTTP Server
 Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
 Active: active (running) since  20**-**-** 19:00:00 JST; 19s ago
 Docs: man:httpd(8)
 man:apachectl(8)

 祉祉祉筝ャ祉祉
 * ** 19:00:00 localhost.localdomain httpd[4362]: AH00558: httpd: Could no...
 * ** 19:00:00 localhost.localdomain systemd[1]: Started The Apache HTTP S...
Hint: Some lines were ellipsized, use -l to show in full.
nao
Active鐚 active鐚running鐚c井
maya
Apache莎桁翫 Active: inactive (dead) 茵腓冴с泣若壕儀潟潟腆肴
nao
Apacheゃ潟鴻若堺ャ翫 Unit httpd.service could not be found. 茵腓冴ゃ潟鴻若腆肴

 

 

泣若劫罩

maya
Apache 罩≪号
# systemctl stop httpd
nao
systemctl潟潟ц儀泣若合倶

 

泣若壕莎桁荐絎

maya
CentOS莎桁絽吾 Apache 莎桁荐絎号
# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
nao
荐絎翫OS罩∽OS莎桁緇泣若鴻綺с鴻帥若綽荀荐絎

 

泣若壕莎桁茹i

maya
CentOS莎桁絽吾 Apache 莎桁荐絎茹iゃ号
# systemctl disable httpd
Removed symlink /etc/systemd/system/multi-user.target.wants/httpd.service.
nao
荐絎с泣若鴻莎桁茹iゃ泣若鴻罩≪荐潟сф絵

 

泣若壕莎桁腆肴

maya
CentOS莎桁絽吾 Apache 莎桁荐絎腆肴号
# systemctl is-enabled httpd
enabled
nao
莎桁荐絎enabled茹iゃdisabled茵腓冴

 

Apache 篏腆肴鐚荐絎鐚

maya
泣若鴻莎桁Web駈FireFox鐚莎桁篁潟激潟IP≪鴻ュ帥

 

 

nao
脂≪茵腓冴井
maya
<帥若≪鴻127.0.0.1с茵腓冴

 

Apache ≪潟ゃ潟鴻若

maya
Web泣若鴻絎筝荀c≪潟ゃ潟鴻若障
# yum -y remove httpd

祉祉祉筝ャ祉祉

絎篋障!

 

  • Apache鐚httpd鐚Web泣若鴻純с
  • yumсゃ潟鴻若絎純
  • systemctlс泣若鴻莎桁糸罩∝荐絎

 

鐚鐚若祉鐚鐚