1.shmget(key,1024,IPC_CREAT|00666) 根据键值创建共享内存块 返回此内存块ID(shmid) IPC_CREATE |666 内存标志 2.shmat(shmid, NULL ,0) 突然发现 这里得内容要丰富