错误:exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /mnt/home/data/mongodb, terminating
原因:此问题是/mnt/home/data/mongodb,没有写的权限,只有读的权限。
解决办法:chomd 777 -R /mnt/home/data/mongodb
错误:exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /mnt/home/data/mongodb, terminating
原因:此问题是/mnt/home/data/mongodb,没有写的权限,只有读的权限。
解决办法:chomd 777 -R /mnt/home/data/mongodb