Linux Micro Host Server configuration

Source: Internet
Author: User
Tags java web

When you write a server code such as Java Web/python/nodejs, you need to deploy to a host, the host as a server, and link a network cable to a switch, how to enable other devices to connect to the switch to access your Web application, this article resolves the problem

1, first installed Dnsmasq,unbuntu under Apt-get install DNSMASQ

2, Configuration dnsmasq. There are not many places to configure, one is/etc/network/interface, configure the parameters of the NIC interface. One is/etc/dnsmasq.conf, make sure the inside of the EXCEPT-INTERFACE=ENP1S0 (this name is the name of the network card you want to share, Enp1s0 is my Ubuntu to the name of the wired network card) and listen-address= 192.168.3.1,127.0.0.1, there is also a dhcp-range=192.168.3.100,192.168.3.200,12h, which indicates that the DHCP configuration range is two IP, the former is the static NIC IP of ENP1S0.

Linux Micro Host Server configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.