더북(TheBook)

31. /etc/apache2/sites-enabled 디렉터리에 다음 명령어를 이용해 wsgi-keystone.conf 파일을 만든 링크를 복사합니다.

root@controller:~# ln -s /etc/apache2/sites-available/wsgi-keystone.conf /etc/apache2/sites-enabled


32. 환경설정이 완료되면 apache2를 재시작하고 정상적으로 실행되는지 status를 확인합니다. 이번에도 역시 실행되지 않습니다. 상태에 address already in use 메시지가 표시된다면 이는 대개 서비스가 정상적으로 정지되지 않았거나 IP 또는 포트가 충돌한 것입니다.

root@controller:~# service apache2 restart
root@controller:~# service apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead) since Mon 2016-05-30 21:09:42 KST; 3s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12714 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/
SUCCESS)
  Process: 12697 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/
SUCCESS)

May 30 21:09:42 controller apache2[12697]: (98)address already in use ah00072 make_sock could not bind to address 5000 May 30 21:09:42 controller apache2[12697]: (98)address already in use ah00072 make_sock could not bind to address 5000 May 30 21:09:42 controller apache2[12697]: no listening sockets available, shutting down May 30 21:09:42 controller apache2[12697]: AH00015: Unable to open logs May 30 21:09:42 controller apache2[12697]: Action ‘start’ failed. May 30 21:09:42 controller apache2[12697]: The Apache error log may have more information. May 30 21:09:42 controller apache2[12697]: * May 30 21:09:42 controller apache2[12714]: * Stopping Apache httpd web server apache2 May 30 21:09:42 controller apache2[12714]: * May 30 21:09:42 controller systemd[1]: Started LSB: Apache2 web server.

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.