Linux

[1028web linux]초간단 apache 웹페이지 만들

 

aws 기준.  1. root 로그인
aws root 사용> $ sudo -s
2. httpd (아파치) 서버 설치
$yum install httpd -y
3. 아파치 실행
$service httpd start
Redirecting to /bin/systemctl start  Redirecting to /bin/systemctl start httpd.service httpd.service
4. 부팅시 프로그램 등록 
$systemctl start httpd.service
$chkconfig httpd on
5. 접속 페이지 생성
$cd /var/www/html/
$vi index.html

<html><h2>Hello Server</h2></html>