fixed
This commit is contained in:
parent
ec0e0436e4
commit
c6c113496b
2 changed files with 6 additions and 2 deletions
|
@ -13,6 +13,9 @@ subnet 192.168.1.0 netmask 255.255.255.0 { \
|
||||||
option domain-name-servers 8.8.8.8, 8.8.4.4; \
|
option domain-name-servers 8.8.8.8, 8.8.4.4; \
|
||||||
}"
|
}"
|
||||||
|
|
||||||
|
echo -e 'INTERFACES="enp0s3"' | sudo tee /etc/default/isc-dhcp-server >/dev/null
|
||||||
|
|
||||||
echo -e "$config" | sudo tee /etc/dhcp/dhcpd.conf >/dev/null
|
echo -e "$config" | sudo tee /etc/dhcp/dhcpd.conf >/dev/null
|
||||||
|
|
||||||
systemctl enable isc-dhcp-server --now
|
systemctl start isc-dhcp-server
|
||||||
|
systemctl enable isc-dhcp-server
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y nginx
|
sudo apt install -y nginx
|
||||||
sudo systemctl enable nginx --now
|
sudo systemctl start nginx
|
||||||
|
sudo systemctl enable nginx
|
||||||
|
|
Loading…
Reference in a new issue