问题一:
Allocating and attaching to shared memory...FAILED
错误信息
Allocating and attaching to shared memory...FAILED
oninit: Fatal error in shared memory creation
online.log出现:
01:45:13 shmget: [EEXIST][17]: key 52a24801: shared memory already exists
01:45:13 mt_shm_init: can't create resident segment
解决方案:
修改配置文件onconfig中的服务器标识号即可(默认为0),可以随意设置,
只要是唯一就可以了,不能过大。在多实例安装中常出现此问题。例如
SERVERNUM 49 # Unique id corresponding to a Dynamic Server instance
问题2:
DISK INITIALIZATION ABORTED: potential instance overwrite detected.
错误信息
DISK INITIALIZATION ABORTED: potential instance overwrite detected.
To disable this check, set FULL_DISK_INIT to 1 in your config file and retry.
oninit: Fatal error in shared memory initialization
解决方案:
在onconfig文件中找到FULL_DISK_INIT,将其后的0改为1