Apache를 다시 시작할 때 "make_sock : 주소 [::] : 443에 바인딩 할 수 없습니다"(trac 및 mod_wsgi 설치)
SSL을 통해 trac 및 mod_wsgi를 설치하려고합니다. 수동으로 설치하려고했지만 잘되지 않아서 다음을 따르기 시작했습니다 : trac-on-ubuntu
대신 git을 사용하고 싶기 때문에 svn 부분을 건너 뛰었습니다. httpd.conf의 첫 번째 편집 후 :
WSGIScriptAlias /trac /var/trac/apache/trac.wsgi
<Directory /var/trac/apache>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
이 오류가 발생하기 위해 아파치를 다시 시작했습니다.
* Restarting web server apache2
(98)Address already in use: make_sock: could not bind to address [::]:443
[ OK ]
이것들은 아무것도 보이지 않았습니다.
netstat -anp | grep 443
fuser 443/tcp
이렇게해도 내가 실행 한 grep 명령 외에는 아무것도 산출되지 않았습니다.
ps -aux | grep httpd
아무것도 표시되지 않는데 다른 것이 포트를 사용하고 있다고 말하는 이유는 무엇입니까?
편집 : 너희들은 이것에 웃을 것입니다. 나는 거기에 있으면 안되는 ports.conf에 추가 Listen 443이 있습니다. 그것을 제거하면 이것을 해결했습니다.
너희들은 이것에 웃을 것이다. 나는 거기에 있으면 안되는 ports.conf에 추가 Listen 443이 있습니다. 그것을 제거하면 이것을 해결했습니다.
나는 같은 문제가 있었고 같은 방식으로 해결했기 때문에 이것에 대한 또 다른 대답을 추가하고 있습니다 : 나는 apache2에 SSL을 사용하여 설치 a2enmod ssl
했습니다 /etc/apache2/ports.conf
.
NameVirtualHost *:80
Listen 80
NameVirtualHost *:443
Listen 443
<IfModule mod_ssl.c>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
내가 처음을 주석했다 Listen 443
애프터 NameVirtualHost *:443
지침 :
NameVirtualHost *:443
#Listen 443
그러나 나는 그것을 허락하고 다른 사람들에게 논평 할 수 있다고 생각합니다. 어쨌든, 해결책에 감사드립니다 :)
답변 해 주셔서 감사합니다. apache 2.4.x 버전에서 yum 명령을 사용하여 ssl_module을 설치 한 경우 httpd.conf (main) 파일에 포트 : 443 을 추가하고 싶지 않습니다 .
구성 파일에서 포트 443을 찾으려면
# grep '443' /etc/httpd/conf.d/*
/etc/httpd/conf.d/ssl.conf:Listen 443 https
/etc/httpd/conf.d/ssl.conf:<VirtualHost _default_:443>
/etc/httpd/conf.d/ssl.conf:#ServerName www.example.com:443
# grep '443' /etc/httpd/conf/httpd.conf
Listen 443
Just remove the line or command it (Listen 443) from httpd.conf file.
For everyone else who has no duplicate Listen directives and no running processes on the port: check that you don't accidentally include ports.conf twice in apache2.conf (as I did due to a bad merge).
I use apache version 2.4.27, also have this problem, solved it through modify
the conf/extra/httpdahssl.conf,comment the 18 line content(Listen 443 https),it works fine.
I am using Ubuntu. I just disabled ssl mode of apache2 and it worked for me.
a2dismod ssl
and then restarted apache2.
service apache2 restart
I have checked and fixed the following and got it resolved -
- httpd.conf file at
/etc/httpd/conf/
- Checked the listening IP and port e.g.
10.12.13.4:80
- Removed extra listening port(s)
- Restarted the httpd service to take
I meet the problem in windows7, phpeclipse, when I start the XAMPP. My solution is :
1.Commented out the \xampp\apache\conf\httpd.conf -> line171 -> #LoadModule ssl_module modules/mod_ssl.so
2.line539 -> #Include conf/extra/httpd-ssl.conf
or you can change the 443 port to another one
I seconded Matthieu answer
I commented #Listen 443 in httpd-ssl file and apache can be started
Because the file already has VirtualHost default:443
In httpd.conf instead:
Listen *:443
you need write Listen 127.0.0.1:443
It works for me.
I made the mistake of incorrectly naming a backup file in the /etc/httpd/conf.d directory. In the README it states that it alphabetically goes through all .conf files.
I had created ssl-<date>.conf (meant to be a backup) and it was loading before ssl.conf. It was binding the :443 port based on the ssl-<date>.conf and failing on the ssl.conf.
Once I renamed the backup file to ssl.conf.<date>, the service started without issue.
As a note, the server I'm on is running RHEL 6
Let me add one more reason for the error. In httpd.conf I included explicitly
Include etc/apache24/extra/httpd-ssl.conf
while did not notice previous wildcard
Include etc/apache24/extra/*.conf
Grepping 443 will not find this.
'code' 카테고리의 다른 글
The easiest way to replace white spaces with (underscores) _ in bash [closed] (0) | 2020.09.21 |
---|---|
? : PHP 5.3에서 무엇입니까? (0) | 2020.09.21 |
현재 PowerShell 실행 파일을 얻으려면 어떻게해야합니까? (0) | 2020.09.20 |
서블릿의 각 인스턴스와 서블릿의 각 서블릿 스레드의 차이점은 무엇입니까? (0) | 2020.09.20 |
EditText의 포커스 테두리 제거 (0) | 2020.09.20 |