실행 중일 때 service apache2 start
응답을 받습니다.
* Starting web server apache2 /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
`netstat -tulpn|을 실행할 때 그렙 :80
나는 응답을 얻습니다.
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::80 :::* LISTEN
이 문제를 어떻게 해결할 수 있나요?
답변1
관리자 권한으로 이 명령을 실행해야 합니다. 부르다 sudo service apache2 start
.
그리고 이것이 도움이 되지 않는다면. 성공적 으로 su
로그인한 후 명령을 실행하세요. 이번에는 작동할 것입니다.