Mongo installation Folder ------------------------------------- [root@blpi241 installables]# ls -ltr total 77076 -rwxr-xr-x 1 p3tda3c1 p3tda3c1 78913303 Aug 27 11:52 mongodb-linux-x86_64-subscription-rhel62-2.4.6.tar drwxr-sr-x 3 p3tda3c1 p3tda3c1 4096 Aug 30 14:33 mongodb-linux-x86_64-subscription-rhel62-2.4.6 drwxr-sr-x 3 p3tda3c1 p3tda3c1 4096 Aug 30 14:39 mongodb -rw-r--r-- 1 p3tda3c1 p3tda3c1 1739 Aug 30 15:37 mongod.conf Mongo Configuration file ------------------------------------- [root@blpi241 installables]# cat mongod.conf # mongo.conf #where to log logpath=/opt/app/p3tda3c1/logs/mongod.log logappend=true # fork and run in background fork = true port = 25001 dbpath=/opt/app/p3tda3c1/data/db # location of pidfile pidfilepath = /var/run/mongodb/mongod.pid #TData specific parameters - Replicaset name #replSet = tdataRS # Disables write-ahead journaling # nojournal = true # Enables periodic logging of CPU utilization and I/O wait #cpu = true # Turn on/off security. Off is currently the default noauth = true #auth = true # Verbose logging output. verbose = true # Inspect all client data for validity on receipt (useful for # developing drivers) #objcheck = true # Enable db quota management #quota = true # Set oplogging level where n is # 0=off (default) # 1=W # 2=R # 3=both # 7=W+some reads #diaglog = 0 # Ignore query hints #nohints = true # Disable the HTTP interface (Defaults to localhost:27018). #nohttpinterface = true # Turns off server-side scripting. This will result in greatly limited # functionality #noscripting = true # Turns off table scans. Any query that would do a table scan fails. #notablescan = true # Disable data file preallocation. #noprealloc = true # Specify .ns file size for new databases. # nssize = # Accout token for Mongo monitoring server. #mms-token = # Server name for Mongo monitoring server. #mms-name = # Ping interval for Mongo monitoring server. #mms-interval = # Replication Options # in replicated mongo databases, specify here whether this is a slave or master #slave = true #source = master.example.com # Slave only: specify a single database to replicate #only = master.example.com # or #master = true #source = slave.example.com Mongo instance Start ------------------------------- [root@blpi241 bin]# ./mongod --config /opt/app/p3tda3c1/installables/mongod.conf about to fork child process, waiting until server is ready for connections. forked process: 25918 all output going to: /opt/app/p3tda3c1/logs/mongod.log child process started successfully, parent exiting [root@blpi241 bin]# ps -Af | grep "mongod" root 25918 1 0 17:02 ? 00:00:00 ./mongod --config /opt/app/p3tda3c1/installables/mongod.conf root 25938 21515 0 17:02 pts/0 00:00:00 grep mongod [root@blpi241 bin]# [root@blpi241 bin]# service mongod stop mongod: unrecognized service [root@blpi241 bin]# Question -------------------------------- 1) why is "service mongod start" and "service mongod stop" not working? 2) root access will be revoked after 7 days. how should we manage the process after that?