Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxÖеÄreturnÎÊÌâ - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø

ÓÐÒ»¶Î´´½¨ÏûÏ¢¶ÓÁеĴúÂëÈçÏ£º
int creat_msg_queue()
{
  key_t key;
  int proj_id;
  int msqid;

  struct msqid_ds buffer;

  proj_id=2;
  key=ftok("/home/program",proj_id);
  if(key==-1){
  perror("cannot generate the IPC key");
  return -1;
  }

  msqid=msgget(key,IPC_CREAT | 0660);
  if(msqid==-1){
  perror("cannot create message queue resource");
  return -1;
  }

  printf("msqid=%d\n",msqid);

return msqid;
}

Ôڸú¯ÊýÖÐÎÒ´òÓ¡³öµÄ¡°msqid¡±µÄÊýÖµÊÇ32769
µ«ÊǸú¯ÊýµÄ·µ»ØÖµÈ´ÊÇ0£¬ÕâÊÇΪʲô°¡£¿


32769µÄ¶þ½øÖÆÂëÊÇ1000000000000001ÕýºÃÊÇ0µÄ²¹Âë¡£²»¹ýÎÒ½âÊͲ»ÁË£¬±ê¼ÇµÈ´ý¸ßÈË

C/C++ code:

#include <stdio.h>
# include <sys/ipc.h>
#include <sys/types.h>
#include <sys/msg.h>
#include <unistd.h>

int creat_msg_queue()
{
key_t key;
int proj_id;
int msqid;

struct msqid_ds buffer;

proj_id=2;
key=ftok("/home/program",proj_id);
if(key==


Ïà¹ØÎÊ´ð£º

linuxÏÂCÓïÑÔ¿ª·¢oracleµÄÎÊÌâ¡£

Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â 
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......

linux²»ÄÜ·ÃÎÊaccess - Java / Java EE

rt£¬ÎÒÊÔÁËÍøÉÏÖ±Á¬AccesÊý¾Ý¿âµÄ·½·¨,windowsÏÂûÓÐÎÊÌâ,µ«ÊÇÔÚlinuxϲ»ÐУ¬Ë­ÄܸøµãÌáʾ£¿Ð»Ð»
ÄãÔõôÁ¬µÄ£¿

AccesÊý¾Ý¿â..
ÄãÔõôÁ·µÄÄØ£¿

Java code:

static String DBDRIVER = "sun.jd ......

linux ¶¨Ê±ÖØÆô·þÎñ£¬ÔÚÏßµÈ - PHP / »ù´¡±à³Ì

ÎÒµÄÏîÄ¿ËùÔڵĻ·¾³ÊÇphp+apache+linux
ÏÖÎÒÖØÆô·þÎñÊÇ service httpd restart 
ÏÖÎÒÏë¶¨Ê±ÖØÆô´ËÏî·þÎñ£¨¶¨ÔÚÿÌìÏÂÎç4µã£© ÔõôʵÏÖѽ£¬¶àл
crontab
* 16 * * * service httpd restart

ѧϰ + d ......

FCKÉÏ´«Îļþµ½linux·þÎñÆ÷ÎÊÌâ - Java / Java EE

ÇëÎÒÓÃFCKÉÏ´«Îļþ,ÔÚ±¾µØµÄwindows»úÉϲâÊÔ¿ÉÒÔ£¬µ«²¿Êðµ½linux·þÎñÆ÷ÉϾÍÉÏ´«²»ÁËÎļþ£¬ÉÏ´«Îļþʱһֱ¿¨ÔÚÄÇÀï¡£Íû¸÷λ´óϺָµã£¬Ð»Ð»£¡
·¹ý£¬°ïÄ㶥һϡ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£

ÉÏ´«ÎļþµÄ·¾¶ÎÊÌ⣬ ......

linux redhat/oracle_linux rpm µÄ°ü¹ÜÀíÔõôÕâÑù£¿

±¾È˺ÜÏëѧµã¶«Î÷£¡´ÓÊÂunix ϵÄά»¤¿ìÁ½ÄêÁË£¡
¼¸Ììǰ±»rpm ¸ãµÄ¼¸Ìì˯²»ºÃ¾õ£¡
ΪÁË×ö²âÊÔºÍʵÑ飬ѧµ½µãÕæ±¾Ê£¡
ÔÚ×Ô¼ºµÄ±Ê¼Ç±¾ÉÏÏÂÔØÁËoracle10g oracle11g redhat,oracle_linux 
¿ªÊ¼°´ÕÕǰÈ˵ľ­Ñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ