Linux ÐÞ¸Ä IPµØÖ· ºÍ Íø¹Ø
ÐÞ¸ÄIPµØÖ·ºÍÍø¹ØÊǺܳ£¼ûµÄ²Ù×÷£¬ÔÚ×öÏà¹ØʵÑéµÄʱºò£¬Èç¹ûûÓÐÉèÖú㬻á´øÀ´ºÜ¶à²»±ØÒªµÄÂé·³..
1. ÐÞ¸ÄIPµØÖ·
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
IPADDR=192.168.1.33
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
Èç¹ûÓÐ2¸öÍø¿¨£¬ µÚ¶þ¸öµÄÏà¹ØÐÅÏ¢¾Í±£´æÔÚifcfg-eth1ÎļþÖС£
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.2.34
NETMASK=255.255.255.0
USERCTL=no
PEERDNS=no
TYPE=Ethernet
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
2. ÐÞ¸ÄÍø¹Ø
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Aaron
GATEWAY=192.168.1.1
3. ÖØÐÂÆô¶¯ÍøÂçÅäÖÃ: ÐÞ¸ÄIPºÍÍø¹ØºóÒªÖØÆôÍøÂç·þÎñºó²ÅÄÜÉúЧ.
/etc/init.d/network restart
Ïà¹ØÎĵµ£º
¿ªÊ¼ÔÚlinuxÏÂ×öcÓïÑÔ¿ª·¢
±¾ÆªÎÄÕÂÖ¼ÔÚ½éÉÜÈçºÎ¿ªÊ¼ÔÚlinuxÏÂÃæ½øÐÐCÓïÑÔ³ÌÐòÉè¼Æ£¬ÒÔ¼°ÈçºÎʹÓóÌÐòÉè¼Æ¼°µ÷ÊÔ¹¤¾ß½øÐбàдC³ÌÐò¡£Ñ§»áʹÓÃgcc¼°gdbµÈ¹¤¾ß½øÐÐlinuxϵÄc±àдºÍµ÷ÊÔ¡£
ÔÚ¿ªÊ¼Ö®Ç°£¬Ê×ÏÈҪ˵Ã÷µÄÊÇ£¬linux¿ª·¢³ÌÐò×îÖ÷ÒªµÄ±à¼Æ÷ÊÇvi/vim±à¼Æ÷£¬µ±È»»¹ÓÐemacs,gedit£¬Ö»ÊÇvi/vimµÄÓû§ÊµÔÚÊÇѹµ¹ÐԵĶàÊ ......
ÊÔÒ»ÊÔ£¬ÆäʵºÜ¼òµ¥µÄ¡£
mkdir -m 775 filename
-m : ÉèÖÃÎļþµÄȨÏÞ¡£Ö±½ÓÉèÖ㬲»ÐèҪĬÈÏȨÏÞ¡£
[root@localhost home]# mkdir text1
[root@localhost home]# mkdir -m 777 text2
[root@localhost home]# ls -l
drwxr-xr-x 2 root root 4096 2010-1-19 08:03 text1
drwxrwxrwx 2 root root 4096 2010-1-19 08:04 ......
ÔÚÖ´ÐÐmake menuconfig ÃüÁî½øÐÐÄÚºËÅäÖÃʱ£¬Êä³öÏÂÃæµÄ³ö´íÐÅÏ¢£º
yyh:~/clfs/sources/linux-2.6.17.13$ make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scri ......
Îĵµ´´½¨ÈÕÆÚ£º2010-02-19
01 // P174: 2.±à³ÌÌâ (13)²»ÀûÓÃstrcmpº¯Êý£¬×Ô¼º±à³ÌʵÏÖÁ½¸öÈÎÒâ×Ö·û´®µÄ±È½Ï¡£
02
03 // The beginning of C program: test06-13.c.
04 &nbs ......
1.check ntp is installed or not
[root@myvm1 server-tar]# whereis npt
npt:
#:(..not install
2.get ntp from official website(http://psp2.ntp.org/bin/view/Main/SoftwareDownloads) and install.
[root@myvm1 server-tar]# wget http://archive.ntp.org/ntp4/ntp-4.2/ntp-4.2.6.tar.gz
[root@myvm1 server-tar ......