LinuxʵÓôúÂë
LinuxʵÓôúÂë--Îļþϵͳ²Ù×÷
from cu
[size=13px]ÕâƪÎĵµÊµÓÃÐÔºÜÇ¿£¬Ëü²»Êǽ²Ä³¸öÃüÁîµÄ²ÎÊý¾ßÌ庬Ò壬¶øÊÇ´Óʵ¼Ê¹¤×÷µÄ½Ç¶ÈÀ´¿¼ÂÇ£¬Íê³Éʲô¹¤×÷ÐèҪʲôָÁî¡£
Îļþϵͳ²Ù×÷ÊÇ×î»ù±¾µÄ²Ù×÷£¬Ã»ÓÐÎļþϵͳ£¬²Ù×÷ϵͳ¸ù±¾¾ÍÔËÐв»ÁË¡£
ÏÂÃæÊÇÎÒÃǾ³£Òª×öµÄһЩÊÂÇé¡£ÔÚÏÂÃæ¾ßÌå²ÎÊýÒâÒå²»½âÊÍ£¬ÒªÁ˽âÕâЩ
¿ÉÒÔ²éѯ¸ÃÃüÁî°ïÖúÎĵµ
1. ´´½¨Ä¿Â¼
mkdir
NO1. ÔÚµ±Ç°Â·¾¶´´½¨Ò»¼¶Ä¿Â¼
[root@rehat root]# mkdir test
NO2. ÔÚµ±Ç°Â·¾¶´´½¨¶à¼¶Ä¿Â¼
[root@rehat root]# mkdir -p mytest/test1/test1_1
NO3. ÔÚ´´½¨Ä¿Â¼µÄͬʱ¸øн¨µÄĿ¼¸³È¨ÏÞ
[root@rehat root]# mkdir -m 777 testmod
ÕâÑùÈκÎÈ˶ԴËĿ¼¶¼ÓÐÈκÎȨÏÞ
2. ¸´ÖÆÎļþÓëÎļþ¼Ð
cp
NO1. ¸´ÖÆÖ¸¶¨Ä¿Â¼µÄÎļþµ½µ±Ç°Ä¿Â¼£¬²¢ÖØÃüÃû
[root@rehat root]# cp ~/.bashrc bashrc_bak
NO2. Ç¿ÖƸ´ÖÆÖ¸¶¨Ä¿Â¼µÄÎļþµ½µ±Ç°Ä¿Â¼£¬¶ø²»¹Üµ±Ç°Ä¿Â¼ÊÇ·ñº¬ÓиÃÎļþ
[root@rehat root]# cp -f ~/.bashrc bashrc
NO2. ¸´ÖÆÖ¸¶¨Ä¿Â¼µ½µ±Ç°Ä¿Â¼
[root@rehat root]# cp -r /root/test .
[root@rehat root]# cp -r /root/test/ .
Á½ÕßЧ¹ûÒ»Ñù£¬ÔÚ¸´ÖÆĿ¼ʱ£¬»á½«Ô´Â·¾¶µÄ×îºóÒ»¼¶Ä¿Â¼È«²¿¸´ÖƹýÈ¥£¬°üÀ¨Ëü±¾Éí¡£
NO3. ¸´ÖÆÖ¸¶¨Ä¿Â¼µÄÎļþµ½Ö¸¶¨Ä¿Â¼
[root@rehat root]# cp ~/.bashrc /bak/.bashrc
NO4. ÔÚ¸´ÖÆʱ½«Ô´ÎļþµÄÈ«²¿ÊôÐÔÒ²¸´ÖƹýÀ´¡£Èô²»Ö¸¶¨²ÎÊý£¬ÔòÄ¿±êÎļþÓëÔ´ÎļþÊôÐÔ¿ÉÄܲ»Ò»Ö¡£
[root@rehat root]# cp -a ~/.ba
Ïà¹ØÎĵµ£º
RedHat£¨CentOS5.3£©Æ½Ì¨ÏÂLAMP´î½¨Linux+Apache+Mysql+PHP
Ò»¡¢°²×°»·¾³£º
ϵͳƽ̨£ºCentOS5.3,ÄÚºË2.6.18-128.el5£¬ÎÄ×Ö½çÃ棨δ°²×°Í¼ÐνçÃ棩
¶þ¡¢Èí¼þÐèÇó¼°ÏµصØÖ·£º
httpd-2.2.13.tar.gz
MySQL-client-community-5.1.40-0.rhel5.i386.rpm MySQL-server-community-5.1.40-0.rhel5.i386.rpm   ......
¾Å¡¢Ä£Ê½±äÁ¿
ÔÚGNUµÄmakeÖУ¬»¹Ö§³Öģʽ±äÁ¿£¨Pattern-specific Variable£©£¬Í¨¹ýÉÏÃæµÄÄ¿±ê±äÁ¿ÖУ¬ÎÒÃÇÖªµÀ£¬±äÁ¿¿ÉÒÔ¶¨ÒåÔÚij¸öÄ¿±êÉÏ¡£Ä£Ê½±äÁ¿µÄºÃ´¦¾ÍÊÇ£¬ÎÒÃÇ¿ÉÒÔ¸ø¶¨Ò»Ö֓ģʽ”£¬¿ÉÒ԰ѱäÁ¿¶¨ÒåÔÚ·ûºÏÕâÖÖģʽµÄËùÓÐÄ¿±êÉÏ¡£
ÎÒÃÇÖªµÀ£¬makeµÄ“ģʽ”Ò»°ãÊÇÖÁÉÙº¬ÓÐÒ»¸ö“%&rdquo ......
±àдÇý¶¯³ÌÐò£¬Ê×ÏÈÒªÁ˽âÊÇʲôÀàÐ͵ÄÉ豸¡£linuxϵÄÉ豸·ÖΪÈýÀ࣬·Ö±ðΪ£º×Ö·ûÉ豸£¬¿éÉ豸ºÍÍøÂçÉ豸¡£×Ö·ûÉ豸ÀàÐÍÊǸù¾ÝÊÇ·ñÒÔ×Ö·ûÁ÷ΪÊý¾ÝµÄ½»»»·½Ê½£¬´ó²¿·ÖÉ豸¶¼ÊÇ×Ö·ûÉ豸£¬Èç¼üÅÌ£¬´®¿ÚµÈ£¬¿éÉ豸ÔòÊÇÒÔ¿éΪµ¥Î»½øÐйÜÀíµÄÉ豸£¬È磬´ÅÅÌ¡£ÍøÂçÉ豸¾ÍÊÇÍø¿¨µÈ¡£
Æä´ÎÒªÁ˽âÓ¦ÓóÌÐòºÍÇý¶¯³ÌÐòµÄÇø±ð£¬Á½ÕßµÄÖ ......
¡¡¡¡1¡¢½éÉÜ£º
¡¡¡¡ ´ó²¿·ÖµÄ Linux ϵͳÖж¼ÒªÊ¹Óà syslog ¹¤¾ß£¬ËüÊÇÏ൱Áé»îµÄ£¬ÄÜʹϵͳ¸ù¾Ý²»Í¬ÈÕÖ¾ÊäÈëÏî²ÉÈ¡²»Í¬µÄ»î¶¯¡£syslog ¹¤¾ßÓÉÒ»¸öÊØ»¤³ÌÐò×é³É¡£ËüÄܽÓÊÜ·ÃÎÊϵͳµÄÈÕÖ¾ÐÅÏ¢²¢ÇÒ¸ù¾Ý /etc/syslog.conf ÅäÖÃÎļþÖеÄÖ¸Áî´¦ÀíÕâЩÐÅÏ¢¡£³ÌÐò£¬ÊØ»¤½ø³ÌºÍÄÚºËÌṩÁË·ÃÎÊϵͳµÄÈÕÖ¾ÐÅÏ¢¡£Òò´Ë£¬ÈκÎÏ£ÍûÉú³ÉÈÕ ......