@centos5/]# CD/ usr/local/ [root@centos5 local]# ls bin etc games include Lib Libexec ntp sbin share src [root@centos5 local]# LS ntp/ Bin lib man [root@centos5 ntp]# CD./bin/ [root@centos5 bin]# ls ntpd NTP dc ntpq ntptrace sntp ntpdate Ntp-keygen ntptime Ntp-wait Tickadj
[Root@centos5 bin]#/ntpdate ch.pool.ntp.org Trial and ch.pool.ntp.org This public network NTP server synchronization time4 June 20:08:47 ntpdate[28663]: Step time server 134.34.3.18 offset 88900.032745
SEC, where offset
Tags: Linux routing configuration Miscellaneous basics11.211.2.1 ifcfg View Linux Routing entries[[emailprotected] ~]# route -nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface10.201.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth00.0.0.0 10.201.106.2 0.0.0.0 UG 0 0 0 eth0View system Activity Status Network interface information[[emailprotected] ~]# ifconfigens33: flags=4163Show all active a
1. On Linux, set the IP address and other information on the Ifcfg-eth0Detailed configuration information is as follows[[email protected] Desktop] #more/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0Bootproto=noneNm_controlled=yesOnboot=noType=ethernetuuid=3d5f18d5-73e0-48db-acbb-67d3ee8b332fipaddr=192.168.171.150Prefix=242, the IP address does not take effect the situation(1) Ifconfig view eth0 network card information, found that the IP address does not take effect[Email protected] deskto
#GATEWAY =192.168.1.1[Email protected] network-scripts]#3. Start the network card[Email protected] network-scripts]# ifup eth1Note, remember not to use [[email protected] ~]#/etc/init.d/network restart. Many people like restart, but if they are remote, server accidents, such as configuration errors. May cause some problems.4. View Configuration Results[Email protected] ~]# ifconfigEth0 Link encap:ethernet HWaddr 00:0c:29:52:5c:06inet addr:192.168.1.221 bcast:192.168.1.255 mask:255.255.255.0Inet6
# # # One, Linux basic network settings# # # 1, view and test the network##### 1) View network configuration-**ifconfig Command * *```Ifconfig//view Active network interface information```* * Network Card Knowledge Introduction: * *Eth0, lo: network interface nameHWADDR: Network card MAC Addressinet addr: IP address of the network interfaceBcast: The broadcast address of the network where the network interface residesMask: Subnet mask for network interface```[Email protected] ~]# ifconfigEth0 Li
1.find File Lookup instructions> Find directory parameter values, parameter values .....> Find/-name passwd//Search for NAME=PASSWD files recursively starting from the system root directoryParameters-maxdepth n Find the deepest table of contents-mindepth N Find the lightest level of the directory-name filename Search by file name-size size to find by file sizeSize Unit 512 bytes (half k)C 20c 20 bytesK 20k 20k> Find/-size +6000c//Finding files larger
.3.1, IP link use exampleTo start and close the network card:[[Email protected] ~]# IP link set dev eth0 up//start NIC, Dev can omit, set can be written s[[email protected] ~]# IP link set dev eth0 Down//off NICDisplay Device properties:[[emailprotected]~]#ip-s-slinkshoweth0//-s option appears two or more times, The IP will output more detailed error information statistics. 2:eth0:In the example above, show can also be replaced with list, LST, sh, LS, L.3.2, IP addr Use exampleShow protocol Addr
1. Manually configure the static NIC address does not take effect2. The NIC name becomes ETH1[email protected] network-scripts]# ls |grep ifcfgIfcfg-eth0Ifcfg-lo[Email protected] network-scripts]# ifconfigeth1 Link encap:ethernet HWaddr 00:0c:29:3a:8b:02inet addr:192.168.1.134 bcast:192.168.1.255 mask:255.255.255.0Inet6 ADDR:FE80::20C:29FF:FE3A:8B02/64 Scope:linkUp broadcast RUNNING multicast mtu:1500 metric:1RX packets:5154 errors:0 dropped:0 overrun
255.255.0.0 U 1002 0 0 eth00.0.0.0 10.109.132.1 0.0.0.0 UG 0 0 0 eth0 ifconfig Command Introduction:View or configure network card IP information1 . Command format:Ifconfig ethx Ip/mask [Up|down]2 . Command function:View or configure network IP related information, effective immediately after modification, but re-activate the network card service or machine, setup failure.3 . Command parameters:-A: Displays configuration information for all network interfaces4 . Command instance:1. Check
the file occupying disk space> du-h File//The smallest block inside a block drive is 4k.?1000k of disk, can be stored how much size is 1k pictureAnswer: 250, disk utilization is only 1/4.?19. Viewing and setting the system time> Date> date-s "2013-12-26 15:21:40"?20. Piping> Ls-al | grep init//Find init file in current directory?21. File Lookup Find> Find directory parameter values, parameter values .....> Find/-name passwd//Search for NAME=PASSWD files recursively starting from the system root
in the output code $%m: Output the message specified in the code, resulting in the log specific information -%n: Output a carriage return line break, Windows platform is "/r/n", UNIX platform is "/n"output log Information line wrapping -can be in%a modifier is added to the pattern character to control its minimum width, maximum width, and text alignment. - such as: A +1)%20c: Specifies the name of the output category, the minimum width is 20, if th
width, and text alignment between% and pattern characters. Such as: 1)%20c: Specifies the name of the output category, the minimum width is 20, and if the category name is less than 20, the default is right-aligned. 2)%-20c: Specifies the name of the output category, the minimum width is 20, if the category name is less than 20, the "-" number specifies left-aligned. 3)%.30c: Specifies the name of the outp
Under Windows to a network card to set multiple IP, is relatively easy, today I wrote the content is about in Linux system, to a network card set up multiple IP address, under the Linux system, the first network card is called Eth0, the second card is called eth1, Here we set the first network card multiple IP, under Linux, configure the network card configuration file in the directory/etc/sysconfig/network-script/, the original network card configuration file name is Ifcfg-eth0, The configurati
=yes
bootproto=static
ipaddr=192.168.1.179
netmask= 255.255.255.0
gateway=192.168.1.1
dns1=114.114.114.114
dns2=8.8.4.4
1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9-10
Save exit
[Root@localhost network-scripts]# Service Network restart1 1
I have a problem with this step, but it's OK to reboot the host.
[Root@localhost ~]# ifconfig br0 Link encap:ethernet hwaddr 00:0c:29:db:b2:28 inet addr:192.168.1.179 Bc ast:192.168.1.255 mask:255.255.255.0 inet6 addr:fe80::20c
program pushes the following, you can write a trace output, so trace should be very much, but it doesn't matter, we can set the minimum log level to not let him output.Debug: Indicates that fine-grained informational events are useful for debugging applications.Info: Messages highlight the application's running process at the coarse-grained level.Warn: Output warnings and Warn logs at the following levels.Error: Output errors message log.Fatal: outputting Every serious error event will cause th
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.