Salut MattProd .
Comme je n'ai pas trop suivi les problèmes lier a nginx je t’avouerais que je n'ai jamais trop fait attention à çà.
Et n'ayant pas eu de souci particulier depuis maintenant plus de 2 ans ..
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since ven. 2019-11-01 12:25:51 CET; 1 day 5h ago
Docs: http://nginx.org/en/docs/
Process: 21774 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Main PID: 978 (code=exited, status=0/SUCCESS)
nov. 01 12:25:49 nginx[21774]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nov. 01 12:25:49 nginx[21774]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nov. 01 12:25:50 nginx[21774]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nov. 01 12:25:50 nginx[21774]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nov. 01 12:25:50 nginx[21774]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nov. 01 12:25:50 nginx[21774]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nov. 01 12:25:51 nginx[21774]: nginx: [emerg] still could not bind()
nov. 01 12:25:51 systemd[1]: nginx.service: control process exited, code=exited status=1
nov. 01 12:25:51 systemd[1]: Failed to start nginx - high performance web server.
nov. 01 12:25:51 systemd[1]: Unit nginx.service entered failed state.
nov. 02 17:48:01 systemd[1]: Stopped nginx - high performance web server.
Voici pour les 2 ports
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 23759/nginx.conf
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 23759/nginx.conf
Aucun parfeu d'installer récemment.
Concernant Cerbot celui-ci n'est plus présent depuis quelque temps. Comme le renouvellement automatique n'a jamais fonctionner je suis rester en mode manuel. Par contre effectivement j'ai un peu zappé la modification à apporter sur ce fichier.
Ce qui m’amène à cette histoire de renouvellement, je crois que le problème est arriver suite à cette manip il y a 3 jours.
D’où mon redémarrage.
Pour moi il est bien complet.
nano /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll; # gestionnaire d'évènements epoll (kernel 2.6+)
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log combined;
error_log /var/log/nginx/error.log error;
sendfile on;
keepalive_timeout 15;
keepalive_disable msie6;
keepalive_requests 100;
tcp_nopush on;
tcp_nodelay off;
server_tokens off;
gzip on;
gzip_comp_level 5;
gzip_min_length 512;
gzip_buffers 4 8k;
gzip_proxied any;
gzip_vary on;
gzip_disable "msie6";
gzip_types
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/vnd.ms-fontobject
font/truetype
font/opentype
image/svg+xml;
include /etc/nginx/sites-enabled/*.conf;
include /etc/nginx/ssl/params.conf;
}
Mon rutorrent.conf est ok. Le server {
est bien present.
Toujours la même chose .
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
edit : ajout ligne complète . Effectivement ce problème de ligne incomplète est un peu pénible
edit 2 : affaire résolu.
fuser -k 80/tcp
fuser -k 443/tcp
service nginx restart