Linuxϵͳµ÷ÓÃfork()Ó÷¨Ïê½â
1. ÏÈ¿´ÏÂÃæ´úÂë:
#include<stdio.h>
#include <sys/types.h> //pid_tÀàÐͶ¨Òå
#include <unistd.h> //º¯Êýfork()£¬getpid()¶¨Òå
void main ()
{
pid_t pid;
pid=fork();
if (pid < 0)
printf("error in fork!");
else if (pid == 0)
printf("i am the child process, my process id is %d\n",getpid());
else
printf("i am the parent process, my process id is %d\n",getpid());
}
Òª¸ãÇå³þforkµÄÖ´Ðйý³Ì£¬¾Í±ØÐëÏȽ²Çå³þ²Ù×÷ϵͳÖеē½ø³Ì(process)”¸ÅÄî¡£
Ò»¸ö½ø³Ì£¬Ö÷Òª°üº¬Èý¸öÔªËØ£º
o. Ò»¸ö¿ÉÒÔÖ´ÐеijÌÐò£»
o. ºÍ¸Ã½ø³ÌÏà¹ØÁªµÄÈ«²¿Êý¾Ý£¨°üÀ¨±äÁ¿£¬ÄÚ´æ¿Õ¼ä£¬»º³åÇøµÈµÈ£©£»
o. ³ÌÐòµÄÖ´ÐÐÉÏÏÂÎÄ£¨execution context£©¡£
 
Ïà¹ØÎĵµ£º
ÓÃÃüÁî whereis java¾Í¿ÉÒÔ¿´µ½ÁË
eg:
-bash-3.1$ whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /opt/jdk1.6.0_01/bin/java
Èç¹û½ö½öÏëÖªµÀjavaÖ´Ðз¾¶ÔÚÄÇÀïµÄ»° ÓÃwhich java¾Í¿ÉÒÔÁË
eg:
-bash-3.1$ which java
/usr/bin/java ......
linuxϰ²×°ÅäÖ÷½·¨£º
µ½java.sun.comÏÂÔØ£ºj2sdk-1_4_2_04-linux-i586.bin.
±£´æµ½/mnt/Ï£¬È»ºósuÇл»µ½rootÓû§£¬
cd /usr/local/
chmod +x j2sdk-1_4_2_04-linux-i586.bin
È»ºó°´ÕÕÌáʾ£¬Ò»Â·¿Õ¸ñ»òÊÇÊäÈëaccept»òÕ߻سµÖ®ºó£¬°²×°Íê³É¡£
È»ºó
cd /usr/local/
ln -s j2sdk1.4.2_04 java
»·¾³±äÁ¿ÅäÖ ......
Ò»°ãÀ´½²£¬Èç¹ûÄãÓÐÒ»¸öÓÐÏßµ÷ÖÆ½âµ÷Æ÷»òÕßÊý×ÖÓû§Ïß·£¬Äã¾Í¿ÉÒÔʹÓüÒÀïµÄµçÄÔ»ñÈ¡ÓÉÄãµÄ·þÎñÌṩÉ̶¯Ì¬·ÖÅäµÄIPµØÖ·¡£Èç¹ûÔÚµ÷ÖÆ½âµ÷Æ÷ºÍ±¾µØÍøÂçÖ®¼ä°²×°ÁËÓÐÏß/Êý×ÖÓû§Ïß·µÄ·ÓÉÆ÷£¬ÄãµÄµçÄÔºÜÓпÉÄÜÊÇÔÚÆô¶¯¹ý³ÌÖдÓ·ÓÉÆ÷»ñÈ¡ÁËIPµØÖ·¡£ÄãÒ²¿ÉÒÔÑ¡Ôñ½ûÓñ¾µØÂ·ÓÉÆ÷ÖÐDHCP·þÎñÆ÷µÄ¹¦ÄÜ£¬¶øÉèÖà ......
Linux±£´æÁËϵͳÖÐËù·¢ÉúʼþµÄÏêϸ¼Ç¼£¬ÕâЩ¼Ç¼³Æ×÷ÈÕÖ¾Îļþ»òÏûÏ¢Îļþ¡£¿ÉÒÔ²éÔÄÈÕÖ¾ÎļþÀ´È·¶¨ÏµÍ³µ±Ç°×´Ì¬£¬¹Û²ìÈëÇÖÕß×Ù¼££¬Ñ°ÕÒÄ³ÌØ¶¨³ÌÐò(»òʼþ)Ïà¹ØµÄÊý¾Ý¡£syslogdÓëklogd(¼à¿ØlinuxÄÚºËÌá½»µÄÏûÏ¢)ÊØ»¤½ø³Ì¸ºÔð¼Ç¼£¬·¢ËÍϵͳ»ò¹¤¾ß²úÉúµÄÐÅÏ¢£¬¶þÕßµÄÅäÖÃÎļþ¶¼ÊÇ/etc/syslog.conf¡£µ±ÏµÍ ......
1¡¢½«Îļþcheckoutµ½±¾µØÄ¿Â¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn addtest.php(Ìí¼Ótest.php)
svn add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓеÄphpÎļþ)
......