Introducing Spring Framework

Introducing Spring Framework Introducing Spring Framework

25.02.2015 Views

Appendix A ■ Installing Tools Stop RabbitMQ To stop RabbitMQ, execute the following command: $ brew services stop rabbitmq Stopping `rabbitmq`… (might take a while) ==> Successfully stopped `rabbitmq` (label: homebrew.mxcl.rabbitmq) RabbitMQ Status To get the status of RabbitMQ, execute the following command: $ rabbitmqctl status Installing the RabbitMQ Web Console By default, RabbitMQ doesn’t have the web console enabled, so you need to enable it by executing the following commands: $ rabbitmq-plugins enable rabbitmq_management $ brew services restart rabbitmq After you execute the above commands, you need to restart RabbitMQ, and then you can go to http://localhost:15672/. The username and password are guest/guest. Start RabbitMQ at Login If you want to have RabbitMQ started every time you login into your Mac, the following command will do the trick: $ ln -sfv /usr/local/opt/rabbitmq/*.plist ~/Library/LaunchAgents ■ ■Note For Linux computers, just download the correct package distribution from www.rabbitmq.com/download.html. Installing Spring Boot Spring Boot is a new technology for creating enterprise and production-ready Spring applications (see Figure A-31). To get more information about this project, go to http://projects.spring.io/spring-boot/. 316

Appendix A ■ Installing Tools Figure A-31. Spring Boot Web Page Installing Spring Boot on Windows To install Spring Boot on Windows, you need to download and install the Spring CLI (command-line interface) from http://repo.spring.io/snapshot/org/springframework/boot/spring-boot-cli/. From the previous URL, you can choose the latest version of the CLI. In this example, I’m using spring-boot-cli-1.1.2.BUILD.XXX-bin.zip; once you download it, you can uncompress it into the C:\Tools folder. Next, you need to add the bin path to the Path environment variable, and even though is not required, I suggest you add the SPRINGBOOT_HOME environment variable that points to C:\Tools\spring-1.1.2.BUILD-SNAPSHOT and then modify the Path environment variable by putting this at the beginning of the existing value: %SPRING_HOME%\bin;. 317

Appendix A ■ Installing Tools<br />

Figure A-31. <strong>Spring</strong> Boot Web Page<br />

Installing <strong>Spring</strong> Boot on Windows<br />

To install <strong>Spring</strong> Boot on Windows, you need to download and install the <strong>Spring</strong> CLI (command-line interface) from<br />

http://repo.spring.io/snapshot/org/springframework/boot/spring-boot-cli/. From the previous URL, you<br />

can choose the latest version of the CLI. In this example, I’m using spring-boot-cli-1.1.2.BUILD.XXX-bin.zip;<br />

once you download it, you can uncompress it into the C:\Tools folder.<br />

Next, you need to add the bin path to the Path environment variable, and even though is not required,<br />

I suggest you add the SPRINGBOOT_HOME environment variable that points to C:\Tools\spring-1.1.2.BUILD-SNAPSHOT<br />

and then modify the Path environment variable by putting this at the beginning of the existing value:<br />

%SPRING_HOME%\bin;.<br />

317

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!