LinuxÐźÅÁ¿ ¹²ÏíÄÚ´æºÍÏûÏ¢¶ÓÁÐ
LinuxÐźÅÁ¿ ¹²ÏíÄÚ´æºÍÏûÏ¢¶ÓÁÐ
1. ÐźÅÁ¿
ʹÓÃÐźÅÁ¿¿ÉÒÔʵÏÖ½ø³Ì¼äͬ²½¡£Ö÷Òªº¯Êý¶¨Ò壺
#include <sys/sem.h>
int semctl(int sem_id, int sem_num, int command, …);
int semget(key_t key, int num_sems, int sem_flags);
int semop(int sem_id, struct sembuf *sem_ops, size_t num_sem_ops);
semgetº¯Êý¸ù¾ÝÌṩµÄkeyÉú³ÉÐźÅÁ¿±êʶ·û£»
semctlº¯Êý³õʼ»¯»òÕßɾ³ýÐźÅÁ¿±êʶ·û£»
semopº¯Êý¸Ä±äÐźÅÁ¿´óС
2. ¹²ÏíÄÚ´æ
¹²ÏíÄÚ´æ»úÖÆʹµÃÁ½¸ö²»Ïà¹Ø½ø³Ì¿ÉÒÔ¶ÁÈ¡ºÍÐÞ¸Äͬһ¶ÎÄÚ´æ´Ó¶øʵÏÖÊý¾Ý¹²Ïí¡£Ö÷Òªº¯Êý¶¨Òå:
#include <sys/shm.h>
void *shmat(int shm_id, const void *shm_addr, int shmflg);
int shmctl(int shm_id, int cmd, struct shmid_ds *buf);
int shmdt(const void *shm_addr);
int shmget(key_t key, size_t size, int shmflag);
shmgetº¯Êý¸ù¾ÝkeyÉú³ÉÓÐЧµÄ¹²ÏíÄÚ´æ¶ÎÃû£¬¸ù¾Ý²ÎÊýsize²úÉú¹²ÏíµÄÄÚ´æÈÝÁ¿¡£
shmatº¯Êý½«´´½¨µÄ¹²ÏíÄÚ´æ¶ÎÁ¬½Óµ½Ò»¸ö½ø³ÌµÄÄÚ´æ¿Õ¼äÖУ¬ÕâÑù²Å¿ÉÒÔʹÓøöÎÄÚ´æ¡£
shmdtº¯Êý½«¹²ÏíÄÚ´æ´Óµ±Ç°ÄÚ´æÖзÖÀë¡£
shmctlº¯Êý¿ÉÒÔɾ³ý¹²ÏíÄÚ´æ¶Î¡£
3. ÏûÏ¢¶ÓÁÐ
ÏûÏ¢¶ÓÁкÍÃüÃû¹ÜµÀ·Ç³£ÀàËÆ£¬µ«ÉÙÁË´ò¿ªºÍ¹Ø±Õ¹ÜµÀµÄ¸´ÔÓÐÔ¡£Ö÷Òªº¯ÊýÈçÏ£º
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
int msgctl(int msqid, int cmd, struct msqid_ds *buf);
int msgget(key_t key, int msgflg);
int msgrcv(int msqid, void *msg_ptr, size_t msg_sz, long int msgtype, int msgflg);
int msgsnd(int msqid, const void *msg_ptr, size_t msg_sz, int msgflg);
Ïà¹ØÎĵµ£º
·¢²¼µÄ 2.6.23 ÄÚºËÖаüº¬ÁËÒ»¸öÖØÒªµÄ±ä»¯£¬ÓÃCFSÌæ´úÁËÒÔÇ°µÄµ÷¶ÈÆ÷¡£CFS ±»ºÏ²¢µ½ mainline ֮ǰ£¬¹ØÓÚÄں˵÷¶ÈÆ÷»¹ÓÐÒ»¸öÖØÒªµÄ patch£ºRSDL¡£×îÖÕ 2.6.23 ¾ö¶¨½« CFS ºÏ²¢µ½ mainline ¶ø·ÅÆúÁË RSDL¡£ÎªÊ²Ã´ÒªÒýÈëеĵ÷¶ÈÆ÷£¬CFS ºÍ RSDL ÓÐʲôÁªÏµºÍÇø±ð£¿±¾ÎÄÊÔͼ¶ÔÄں˵÷¶ÈËã·¨µÄ·¢Õ¹ÀúÊ·×öÒ»¸ö¼òÒª½éÉÜ£¬Ï£ÍûÄ ......
Ò»¡¢ jdkµÄ°²×°
1. ÏÂÔØjdk£º ´Ówww.sun.comÏÂÔØjdk£¨ jdk-1_5_0_20-linux-i586-rpm.bin £©£¬ÏÂÔغóʹÓÃsshÉÏ´«µ½linuxϵͳµÄhomeĿ¼Ï£¬µ±È»Ò²¿ÉÒÔ·ÅÔÚÆäËüĿ¼¡£
2. ½øÈ밲װĿ¼,ÐÞ¸ÄjdkµÄʹÓÃȨÏÞ,¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ£º
#cd /home
#chmod +x jdk-1_5_0_20-linux-i586.rpm.bin ......
Linux»·¾³ÏµÄÈí¼þ°²×°£¬²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇé;Èç¹ûͨ¹ýÔ´´úÂë±àÒëºóÔÚ°²×°£¬µ±È»ÊÂÇé¾Í¸üΪ¸´ÔÓһЩ;ÏÖÔÚ°²×°¸÷ÖÖÈí¼þµÄ½Ì³Ì¶¼·Ç³£ÆÕ±é;µ«Íò±ä²»ÀëÆäÖУ¬¶Ô»ù´¡ÖªÊ¶µÄÔúʵÕÆÎÕ£¬°²×°¸÷ÖÖÈí¼þµÄÎÊÌâ¾ÍÓÈжø½âÁË¡£Configure½Å±¾ÅäÖù¤¾ß¾ÍÊÇ»ù´¡Ö®Ò»£¬ËüÊÇautoconfµÄ¹¤¾ßµÄ»ù±¾Ó¦Óá£
ÓëһЩ¼¼ÇÉÏà±È£¬ConfigureÏԵûù´¡Ò» ......
ÈçºÎ¿ªÆô¹Ø±Õlinux·À»ðǽ
¡¡¡¡ÖØÆôºóÉúЧ
¡¡¡¡¿ªÆô£ºchkconfig iptables on
¡¡¡¡¹Ø±Õ£ºchkconfig iptables off
¡¡¡¡¼´Ê±ÉúЧ£¬ÖØÆôºóʧЧ
¡¡¡¡¿ªÆô£ºservice iptables start
¡¡¡¡¹Ø±Õ£ºservice iptables stop
¡¡¡¡»ò
¡¡¡¡¹Ø±Õ£º /etc/rc.d/init.d/iptables stop
¡¡¡¡Æô¶¯£º /etc/rc.d/init.d/ip ......
wine Ò»¸ö1.1°æ±¾µÄËѹ·ä¯ÀÀÆ÷£º
$ ln -s
Îļþ¼Ð·¾¶/SogouExplorer/ .wine/drive_c/Program\ Files/SogouExplorer
$ wine "C:\Program
Files\SogouExplorer\SogouExplorer.exe" -proxy
PID:8
PORT:8081
CPORT:8082
PAC:http://127.0.0.1:8082/proxy.pac?t=1349
RET:SUCCESS
¼´
¿ÉÔÚ Fi ......