Webdav 실행을 하려고 보니, 아차피 실행이 안되고 있었다.
$ sudo /etc/init.d/apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
/etc/apache2/apache2.conf 를 편집기로 연다.
$ sudo nano /etc/apache2/apache2.conf
아래 내용을 추가
ServerName localhost
다시 시작한다.
$ sudo systemctl reload apache2
다른 오류가 더 있었다.
apachectl[8796]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
apachectl[8796]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
apachectl[8796]: no listening sockets available, shutting down
apachectl[8796]: AH00015: Unable to open logs
apachectl[8796]: Action 'start' failed.
apachectl[8796]: The Apache error log may have more information.
systemd[1]: apache2.service: Control process exited, code=exited status=1
sudo[8766]: pam_unix(sudo:session): session closed for user root
systemd[1]: apache2.service: Failed with result 'exit-code'.
systemd[1]: Failed to start The Apache HTTP Server.
$ netstat -anp | grep 80
$ kill -9 프로세스번호
:::80이 없도록 프로세스를 kill 한다.
다시 시작
$ /usr/local/apache/bin/apachectl start
혹은 기본 포트를 변경해줘도 된다.
$ sudo nano /etc/apache2/ports.conf
Listen 80
=>
Listen 8080
댓글 쓰기