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>
Enviado em 08/08/2021 - 17:31h
Após reiniciar o servidor, o Apache iniciou, nos 2 IPs, enquanto que o Tomcat não subiu.Enviado em 08/08/2021 - 21:16h
------------------------------------------------------| Linux User #621728 |------------------------------------------------------ " Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )" ------------------------------------------------------| Linux User #621728 |------------------------------------------------------
Enviado em 09/08/2021 - 03:28h
Enviado em 09/08/2021 - 08:19h
127.0.0.1 localhost 127.0.1.1 debian 10.0.0.51 exemplo.com # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
... #Include ports.conf ... <Directory /> AllowOverride All Require all granted </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/exemplo> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> ... ServerName exemplo.com DocumentRoot /var/www/exemplo Listen 10.0.0.51:80
ServerName exemplo.com DocumentRoot /var/www/exemplo <VirtualHost 10.0.0.51:80> ServerAdmin diego@drsolutions.com.br DocumentRoot /var/www/exemplo ServerName exemplo.com ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
VirtualHost configuration: 10.0.0.51:80 exemplo.com (/etc/apache2/sites-enabled/exemplo.conf:5) ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/exemplo" Main ErrorLog: "/var/log/apache2/error.log" Mutex default: dir="/var/run/apache2/" mechanism=default Mutex watchdog-callback: using_defaults PidFile: "/var/run/apache2/apache2.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="www-data" id=33 Group: name="www-data" id=33
Enviado em 09/08/2021 - 16:04h
127.0.0.1 localhost 127.0.1.1 debian 10.0.0.51 exemplo.com # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
... #Include ports.conf ... <Directory /> AllowOverride All Require all granted </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/exemplo> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> ... ServerName exemplo.com DocumentRoot /var/www/exemplo Listen 10.0.0.51:80
ServerName exemplo.com DocumentRoot /var/www/exemplo <VirtualHost 10.0.0.51:80> ServerAdmin diego@drsolutions.com.br DocumentRoot /var/www/exemplo ServerName exemplo.com ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
VirtualHost configuration: 10.0.0.51:80 exemplo.com (/etc/apache2/sites-enabled/exemplo.conf:5) ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/exemplo" Main ErrorLog: "/var/log/apache2/error.log" Mutex default: dir="/var/run/apache2/" mechanism=default Mutex watchdog-callback: using_defaults PidFile: "/var/run/apache2/apache2.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="www-data" id=33 Group: name="www-data" id=33
Enviado em 09/08/2021 - 22:56h
A porta padrão do Tomcat é 8080, mas verifique quem está escutando na porta 80:Enviado em 10/08/2021 - 20:51h
O endereço 0.0.0.0 na saída do log indica o socket ouvindo nas duas interfaces. Não tenho um computador aqui p testar, maa tente configurar a variável Listen do apache2.conf (ou httpd.conf)Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Título: Descobrindo o IP externo da VPN no Linux
Armazenando a senha de sua carteira Bitcoin de forma segura no Linux
Enviar mensagem ao usuário trabalhando com as opções do php.ini
## Instalado Microsoft Edge no Linux Mint 22
Como configurar posicionamento e movimento de janelas no Lubuntu (Openbox) com atalhos de teclado
Máquinas Virtuais com IP estático acessando Internet no Virtualbox
Como acesso o Joomla por outras maquinas. (1)
Quais arquivos vc salvaria num backup se vc soubesse que seu hd/ssd ia... (5)