Article Source Address: http://my.oschina.net/junn/blog/142983The network parameters of Ubuntu server are saved in the file/etc/network/interfaces, and the default setting uses DHCP, as follows:# The Primary network interfaceAuto Eth0Iface eth0 inet DHCPHere's how to set up a static IP:1) Edit Vi/etc/network/interfaces1.1) block the DHCP line# The Primary network
gateway is set# grep gateway/etc/sysconfig/network-scripts/ifcfg*-------------------------------------------------------------------/etc/sysconfig/network-scripts/ifcfg-eth0:gateway=192.168.40.1-------------------------------------------------------------------Ps:ubuntu 10.3 Cannot find this file, maybe the version is wrong3) ensure available DNS resolution# grep hosts/etc/nsswitch.conf-------------------------------------------------------------------Hosts:files DNS----------------------------
One of the research and development of a buddy, ping their own IP or their own host name, there is a situation of ping.Compared to other machines, the Ifcfg-lo file found in the/etc/sysconfig/network directory is empty,This address is also not 127.0.0.1 when viewed with "Ifconfig lo".Workaround, copy the Ifcfg-lo file from the other machine to the native.Then, "Ifconfig lo Up"Ifconfig Lo Upping can be resol
[113.106.194.220]over a maximum of 30 hops: 1 1 ms 2 ms 4 ms 10.0.59.254 2 3 ms 3 ms 3 ms 10.0.59.254 3 7 ms 8 ms 2 ms 113.106.194.225 4 4 ms 3 ms 8 ms 220.243.136.2 5 5 ms 2 ms
Today, I was shocked to view the SSH logon records of VPS. I used to log on to the SSH dictionary with several IP addresses and guess the root password. Their list is now published:
62.75.214.93 gera125.server4you.de German/German devils
203.215.252.189 Hong Kong Special Administrative Region/speechless ....
219.143.200.169 Beijing Telecom/is still doing bad things in the Party Central Committee ....
60.12.193.134 Zhejiang Huzhou Netcom/
C953dc2c.20.a
When you use $ _ SERVER [REMOTE_ADDR] to restrict IP addresses, for example, you can use $ _ SERVER ['remote _ ADDR '] to restrict IP addresses. a company is an Internet company, is it true that the entire company can only vote for one vote.
Reply to discussion (solution)
Yes. Users can be requested to log on and
file. You only need to write down the previous single domain name repeatedly, for example, server. The code is as follows:Copy code { Listen 80;Server_name www.111cn.net; # bind a domain nameIndex index.htm index.html index. php; # default fileRoot/home/www/111cn.net; # Website root directoryInclude location. conf; # call other rules, which can also be removed} Server{ Listen 80;Server_name msn.111cn.n
TCP/IP network programming (transcription note 3) – Zombie process and multitasking concurrent server table of Contents
The production of zombie processes
Avoid zombie processes
Signal
Multi-tasking Concurrent server
The production of zombie processes
Child process exits first, parent
TCP/IP network programming (transcription note 3) – Zombie process and multitasking concurrent server table of Contents
The production of zombie processes
Avoid zombie processes
Signal
Multi-tasking Concurrent server
The production of zombie processes
Child process exits first, parent
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.