Enviado em 08/08/2021 - 17:23h
Prezados,root@debian:/etc/apache2# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:a7:ea:79 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.51/24 brd 10.0.0.255 scope global noprefixroute enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::104d:ce72:fa09:3f83/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:92:88:2e brd ff:ff:ff:ff:ff:ff
inet 10.0.0.50/24 brd 10.0.0.255 scope global noprefixroute enp0s8
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe92:882e/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@debian:/etc/apache2# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-08-08 17:14:02 -03; 12s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 3420 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
ago 08 17:14:02 debian systemd[1]: Starting The Apache HTTP Server...
ago 08 17:14:02 debian apachectl[3420]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
ago 08 17:14:02 debian apachectl[3420]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
ago 08 17:14:02 debian apachectl[3420]: no listening sockets available, shutting down
ago 08 17:14:02 debian apachectl[3420]: AH00015: Unable to open logs
ago 08 17:14:02 debian apachectl[3420]: Action 'start' failed.
ago 08 17:14:02 debian apachectl[3420]: The Apache error log may have more information.
ago 08 17:14:02 debian systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
ago 08 17:14:02 debian systemd[1]: apache2.service: Failed with result 'exit-code'.
ago 08 17:14:02 debian systemd[1]: Failed to start The Apache HTTP Server.
ServerName 10.0.0.51
VirtualHost 10.0.0.51:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>