Apache 설치
yum install -y httpd
Last metadata expiration check: 0:44:22 ago on Mon 08 Jun 2020 04:36:43 PM PDT. Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: httpd x86_64 2.4.37-16.module_el8.1.0+256+ae790463 AppStream 1.7 M Installing dependencies: apr x86_64 1.6.3-9.el8 AppStream 125 k apr-util x86_64 1.6.1-6.el8 AppStream 105 k centos-logos-httpd noarch 80.5-2.el8 AppStream 24 k httpd-filesystem noarch 2.4.37-16.module_el8.1.0+256+ae790463 AppStream 35 k httpd-tools x86_64 2.4.37-16.module_el8.1.0+256+ae790463 AppStream 103 k mod_http2 x86_64 1.11.3-3.module_el8.1.0+213+acce2796 AppStream 158 k Installing weak dependencies: apr-util-bdb x86_64 1.6.1-6.el8 AppStream 25 k apr-util-openssl x86_64 1.6.1-6.el8 AppStream 27 k Enabling module streams: httpd 2.4
Transaction Summary ================================================================================ Install 9 Packages
Total download size: 2.3 M Installed size: 6.6 M Downloading Packages: (1/9): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 125 kB/s | 25 kB 00:00 (2/9): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 278 kB/s | 27 kB 00:00 (3/9): apr-1.6.3-9.el8.x86_64.rpm 335 kB/s | 125 kB 00:00 (4/9): centos-logos-httpd-80.5-2.el8.noarch.rpm 290 kB/s | 24 kB 00:00 (5/9): apr-util-1.6.1-6.el8.x86_64.rpm 266 kB/s | 105 kB 00:00 (6/9): httpd-filesystem-2.4.37-16.module_el8.1. 377 kB/s | 35 kB 00:00 (7/9): httpd-tools-2.4.37-16.module_el8.1.0+256 734 kB/s | 103 kB 00:00 (8/9): mod_http2-1.11.3-3.module_el8.1.0+213+ac 715 kB/s | 158 kB 00:00 (9/9): httpd-2.4.37-16.module_el8.1.0+256+ae790 1.9 MB/s | 1.7 MB 00:00 -------------------------------------------------------------------------------- Total 577 kB/s | 2.3 MB 00:04 warning: /var/cache/dnf/AppStream-a520ed22b0a8a736/packages/apr-1.6.3-9.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY CentOS-8 - AppStream 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0x8483C65D: Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>" Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : apr-1.6.3-9.el8.x86_64 1/9 Running scriptlet: apr-1.6.3-9.el8.x86_64 1/9 Installing : apr-util-bdb-1.6.1-6.el8.x86_64 2/9 Installing : apr-util-openssl-1.6.1-6.el8.x86_64 3/9 Installing : apr-util-1.6.1-6.el8.x86_64 4/9 Running scriptlet: apr-util-1.6.1-6.el8.x86_64 4/9 Installing : httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x8 5/9 Running scriptlet: httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae7904 6/9 Installing : httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae7904 6/9 Installing : centos-logos-httpd-80.5-2.el8.noarch 7/9 Installing : mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_6 8/9 Installing : httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 9/9 Running scriptlet: httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 9/9 Verifying : apr-1.6.3-9.el8.x86_64 1/9 Verifying : apr-util-1.6.1-6.el8.x86_64 2/9 Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 3/9 Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 4/9 Verifying : centos-logos-httpd-80.5-2.el8.noarch 5/9 Verifying : httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 6/9 Verifying : httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae7904 7/9 Verifying : httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x8 8/9 Verifying : mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_6 9/9
Installed: httpd-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 apr-util-bdb-1.6.1-6.el8.x86_64 apr-util-openssl-1.6.1-6.el8.x86_64 apr-1.6.3-9.el8.x86_64 apr-util-1.6.1-6.el8.x86_64 centos-logos-httpd-80.5-2.el8.noarch httpd-filesystem-2.4.37-16.module_el8.1.0+256+ae790463.noarch httpd-tools-2.4.37-16.module_el8.1.0+256+ae790463.x86_64 mod_http2-1.11.3-3.module_el8.1.0+213+acce2796.x86_64
Complete! |
#필요시 아래와 같이 허용
$ firewall-cmd --permanent --add-service=http
$ firewall-cmd --permanent --add-service=https
$ firewall-cmd --reload
부팅시 실행 설정
$ systemctl enable httpd
서비스를 시작합니다
$ systemctl start httpd
해당 ip접속하여 정상동작 확인.
centos8 apache tomcat연동_2020.06.15가능 버전 (1) | 2020.06.15 |
---|---|
리눅스 tomcat9 설치 (0) | 2020.06.09 |
centOS에 MariaDB 설치 방법, 자동 startup 설정 하기 (0) | 2020.01.21 |
centOS 설치 방법 (0) | 2020.01.20 |
vmware player 설치기 (0) | 2020.01.20 |