Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # I run this with Maven and JDK 17 on an Ubuntu Server Virtual Machine
- # Essentially you only need Maven and the repo.
- # If you are running this in a local machine and have Maven and Java 17 installed, skip until step 6
- # 1. Update and upgrade
- sudo apt update -y
- sudo apt upgrade -y
- # 2. Just In case (optional)
- sudo apt build-essential -y
- # 3. When I cloned it today, Spring Boot Server Project was using for this Java version
- # Install java 17
- sudo apt install openjdk-17-jdk openjdk-17-jre -y
- # 4. By default the WebSocket server port is 8080
- # You need to open this ports
- sudo ufw enable
- sudo ufw allow 8080
- sudo ufw allow 22 # in case you are using ssh
- # 5. I used maven in order to run the server
- sudo apt install maven
- # 6. Clone the repo with git and go to the complete directory
- git clone https://github.com/spring-guides/gs-messaging-stomp-websocket.git
- cd complete
- # 7. Run the websocket server
- mvn spring-boot:run
- # 8. Open the explorer in with url http://<IP-ADDRESS>:8080
- # Example:
- # http://localhost:8080 - For localhost setup
- # http://192.168.0.18:8080 - For Virtual Machine
Add Comment
Please, Sign In to add comment