Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
관리 메뉴

클라우드팡

Httpd Server 설치 본문

RHEL Repo 구성과 OpenShift Cluster 설치 coreos, Ignition 파일을 서비스 하기 위해 설치 합니다.

Bastion 서버에 구성시 Port 충돌을 피하기 위해 Listen Port 만 변경 합니다.

 

yum install -y httpd

if [[ ! -f /etc/httpd/conf/httpd.conf.orig ]]; then
  mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.orig
fi

cat /etc/httpd/conf/httpd.conf.orig |grep -v ^[[:blank:]]*# |grep -v ^[[:blank:]]*$ |tee /etc/httpd/conf/httpd.conf

sed -i "s/Listen 80/Listen 7777/g" /etc/httpd/conf/httpd.conf
semanage port -a -t http_port_t -p tcp 7777

firewall-cmd --permanent --add-port=7777/tcp --zone=public
firewall-cmd --reload

systemctl start httpd.service

netstat -anp |grep LISTEN |grep 7777