This indicates the command-line client has not fallen over. Ignoring the errors what is important is the “bye” message. You will notice several error message these I believe are irrelevant! We have both server and client running next test cleanly shuts down the sever. What is important you will see a flashing cursor “>|” this confirms mongo-client has connected to the server and is ready to receive commands. Web admin interface listening on port 28017 Query ntoreturn:0 reslen:36 nreturned:0 15msĪccessing: uniform_server for the first timeĭb version v1.4.5-pre-, pdfile version 4.5 What is important is the last line “listening on port 28017” this confirms server is running. For clarity some details have been removed. Running the above batch files is equivalent to running commands from a command prompt. With following configuration file -f config_no_auth.ini.To stop MongoDB type the following into client:Ĭreate a new batch file Run_mongo_no_auth.bat with the following ontents: Our main application requires Mongo be run either with or without authentication and hidden in the background.įor testing we will manually stop MongoDB using the mongo-client.Ĭreate a new batch file Run_client.bat with the following ontents: Starting MongoDB is very easy this page covers two methods from a batch file and a PHP CLI script. 4 Starting MongoDB from a PHP CLI script.3 Starting MongoDB from a batch file hidden.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |