Hardware Reference
In-Depth Information
avahi-daemon: r
NOTE
To allow the output to fit on the width of the printed page, the
Recv-Q
,
Send-Q
, and
State
columns have been removed from the preceding code listing.
The
Local Address
column lists the IP addresses and port numbers. Here,
apache2
is shown listening on port
8080
, and
node
is listening on port
80
. Here's how to switch
Apache
back to port
80
.
First, move
node
to another port by editing
/lib/systemd/system/
bonescript.socket
. Initially, it begins with this:
[Socket]
ListenStream=80
Change the
80
to another port number —
8081
, for example.
Next, move
apache2
to another port by editing the
/etc/apache2/ports.conf
file. A few
lines down, you will find these lines:
NameVirtualHost *:8080
Listen 8080
Change both instances of
8080
to
80
and reboot to make the changes effective.
Now, pointing a browser to
192.168.7.2
will use the Apache server.