Embedded Linux

Ubuntu Linux 에서 Apache 설치 및 확인

작성자 임베디드코리아 작성일15-11-23 09:52 조회4,806회 댓글0건
< 패키지가 설치 안 될때 수행 함>
    # apt-get clean
    # apt-get  -f  install
    # dpkg -i --force-overwrite  /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb
    # apt-get autoremove

<  Ubuntu Linux 에서 Apache 설치 및 확인 >

1. 아파치 패키지를 다운받아서 설치한다.
      # apt-get install apache2 apache2-doc apache2-utils  //완료하면, 자동으로 아파치 웹서버까지 실행 함

2.  설치가 완료 되면  /etc/apache2 디렉토리가 생성되며, 아파치 설정파일들이 생성성되어 있다.
    # cd  /etc/apache2
    # ls

3. 아피치 웹서버의 웹서비스 대상이 되는 파일이 위치하는 곳은 /var/www 이며, 접근하여 기존의 index.html을 변경 해본다.
  # cd  /var/www
  # cd  html/
  # vi  index.html
      ------------------------------------------------------------------------
        <html>
        <body>
                <h1>Hellow, edmbeedkorea!</h1>
                <h2>Here is embeddedkorea.com</h2>
      </body>
    </html>
    --------------------------------------------------------------------------
4. 아피치 웹서버를 재실해 한다
  #  /etc/init.d/apache2 restart

5.  웹브라우저에서 접근해 본다
    http://localhost
    http://192.168.10..10