Database Reference
In-Depth Information
The problem is that the
mongod
instance can't create the lock file because of the lack of
permissions. To address this issue, you should simply execute the command using a root
or administrator permission level.
After executing the command using the proper permission level, you should see a result
like the following screenshot:
As you can see now, we have a configuration server for the hostname
cfg1.sharding.com
with port
27019
and with
dbpath
as
/data/configdb
.
Also, there is a web console to watch and control the configuration server running on port
28019
. By pointing the web browser to the address
http://localhost:28019/
,
you can see the console.
The following screenshot shows a part of this web console: