Introducing Spring Framework
Introducing Spring Framework Introducing Spring Framework
Appendix A ■ Installing Tools Figure A-27. Path Environment Variable with the MONGODB_HOME/bin The MongoDB server also needs a storage path where it will allocate all the data for your collections (these collections will hold all the documents and types that you will be using in several chapters). So every time you start the server you need to add this path with the --dbpath parameter. Start MongoDB server To start the MongoDB server, execute the following command (also see Figure A-28). It is important that the DATA path exists: C:\> mongod --dbpath C:\Data\mongodb Figure A-28. Running MongoDB 310
Stop MongoDB Server Appendix A ■ Installing Tools To stop the MongoDB server, just press Ctrl+C from the window where it is running and it will close all connections and shut down the server. ■ ■Note If you need to run MongoDB as a service, you can follow the steps from MongoDB’s web site: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/. Installing MongoDB on a Mac OS X You need to install the Homebrew tool first (remember, Homebrew makes it easy to install any tool or library). To install MongoDB, just execute the following commands: $ brew update $ brew install mongodb After installing MongoDB, make sure everything is installed correctly by executing $ mongo -version MongoDB shell version: 2.6.1 Start MongoDB server To start the MongoDB server on your Mac, just execute the following command: $ brew services start mongodb ==> Successfully started `mongodb` (label: homebrew.mxcl.mongodb) Stop MongoDB server To stop the MongoDB server, just execute the following command: $ brew services stop mongodb Stopping `mongodb`… (might take a while) ==> Successfully stopped `mongodb` (label: homebrew.mxcl.mongodb) Start MongoDB at Login If you want to have MongoDB started every time you login into your Mac, the following command will do the trick: $ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents ■Note ■ How you install MongoDB on a Linux computer will depend on your version of Linux, either RPM (for RedHat-based distributions) or .deb (for Debian-based distributions). Usually you can find the installation package at the MongoDB site (www.mongodb.org/downloads). 311
- Page 253 and 254: Chapter 18 ■ Spring and Groovy cl
- Page 255 and 256: Chapter 18 ■ Spring and Groovy If
- Page 257 and 258: Chapter 18 ■ Spring and Groovy Li
- Page 259 and 260: Chapter 19 ■ Spring Boot, Simplif
- Page 261 and 262: Chapter 19 ■ Spring Boot, Simplif
- Page 263 and 264: Chapter 19 ■ Spring Boot, Simplif
- Page 265 and 266: Chapter 19 ■ Spring Boot, Simplif
- Page 267 and 268: Chapter 19 ■ Spring Boot, Simplif
- Page 269 and 270: Chapter 19 ■ Spring Boot, Simplif
- Page 271 and 272: Chapter 19 ■ Spring Boot, Simplif
- Page 273 and 274: Chapter 20 ■ Your First Spring XD
- Page 275 and 276: Chapter 20 ■ Your First Spring XD
- Page 277 and 278: Chapter 20 ■ Your First Spring XD
- Page 279 and 280: Chapter 20 ■ Your First Spring XD
- Page 281 and 282: Chapter 20 ■ Your First Spring XD
- Page 283 and 284: Appendix A Installing Tools In this
- Page 285 and 286: Appendix A ■ Installing Tools Fig
- Page 287 and 288: Setting Environment Variables Appen
- Page 289 and 290: Appendix A ■ Installing Tools Fig
- Page 291 and 292: Appendix A ■ Installing Tools 6.
- Page 293 and 294: Appendix A ■ Installing Tools Fig
- Page 295 and 296: Appendix A ■ Installing Tools ■
- Page 297 and 298: Appendix A ■ Installing Tools Fig
- Page 299 and 300: Appendix A ■ Installing Tools Fig
- Page 301 and 302: Appendix A ■ Installing Tools Fig
- Page 303: Appendix A ■ Installing Tools Fig
- Page 307 and 308: Stop ActiveMQ Appendix A ■ Instal
- Page 309 and 310: Installing RabbitMQ on Windows Appe
- Page 311 and 312: Appendix A ■ Installing Tools Fig
- Page 313 and 314: Installing Spring XD on Windows App
- Page 315 and 316: ■ index • I I/O operations, 62
- Page 317 and 318: ■ index Spring application (cont.
- Page 319 and 320: Introducing Spring Framework A Prim
- Page 321 and 322: To my parents, Rocio Cruz and Felip
- Page 323 and 324: ■ Contents ■■Chapter 3: Apply
- Page 325 and 326: ■ Contents ■■Chapter 12: Expo
- Page 327 and 328: ■ Contents ■■Chapter 20: Your
- Page 329 and 330: About the Author Felipe Gutierrez i
- Page 331: Acknowledgments I would like to exp
Stop MongoDB Server<br />
Appendix A ■ Installing Tools<br />
To stop the MongoDB server, just press Ctrl+C from the window where it is running and it will close all connections<br />
and shut down the server.<br />
■ ■Note If you need to run MongoDB as a service, you can follow the steps from MongoDB’s web site:<br />
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/.<br />
Installing MongoDB on a Mac OS X<br />
You need to install the Homebrew tool first (remember, Homebrew makes it easy to install any tool or library). To<br />
install MongoDB, just execute the following commands:<br />
$ brew update<br />
$ brew install mongodb<br />
After installing MongoDB, make sure everything is installed correctly by executing<br />
$ mongo -version<br />
MongoDB shell version: 2.6.1<br />
Start MongoDB server<br />
To start the MongoDB server on your Mac, just execute the following command:<br />
$ brew services start mongodb<br />
==> Successfully started `mongodb` (label: homebrew.mxcl.mongodb)<br />
Stop MongoDB server<br />
To stop the MongoDB server, just execute the following command:<br />
$ brew services stop mongodb<br />
Stopping `mongodb`… (might take a while)<br />
==> Successfully stopped `mongodb` (label: homebrew.mxcl.mongodb)<br />
Start MongoDB at Login<br />
If you want to have MongoDB started every time you login into your Mac, the following command will do the trick:<br />
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents<br />
■Note ■ How you install MongoDB on a Linux computer will depend on your version of Linux, either RPM<br />
(for RedHat-based distributions) or .deb (for Debian-based distributions). Usually you can find the installation<br />
package at the MongoDB site (www.mongodb.org/downloads).<br />
311