Skip to content

Commit

Permalink
Create InitLavalinkServer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
4i8 authored Dec 7, 2023
1 parent 7484ed5 commit 2592bcf
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions InitLavalinkServer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
1# install JAVA
```
sudo apt-get install default-jre
```
2# install UFW
```
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ufw
```
#3 Install LavaLink
```
mkdir LavaLinkServer
cd LavaLinkServer
wget https://github.com/freyacodes/Lavalink/releases/download/3.7.5/Lavalink.jar
wget https://raw.githubusercontent.com/lavalink-devs/Lavalink/master/LavalinkServer/application.yml.example
mv application.yml.example application.yml
ufw allow 2333
```
#4 Install Nodejs
```
sudo apt-get update
sudo apt-get upgrade
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
npm -v
```
#5 install PM2
```
npm i pm2 -g
```
#6 Finally Run
```
pm2 start java -- -jar ./Lavalink.jar
```

0 comments on commit 2592bcf

Please sign in to comment.