Browse Source

Updated scripts for setting up VM

production
Steffan JJ 1 year ago
parent
commit
b5c4c2e6b9
2 changed files with 8 additions and 4 deletions
  1. 7
    3
      trias_appserver_script.sh
  2. 1
    1
      trias_dbserver_script.sh

+ 7
- 3
trias_appserver_script.sh View File

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc source ~/.bashrc
nvm list-remote nvm list-remote
echo "Enter the version of node you want to install: (Example. 'v16.19.1')"
read nodeversion
nvm install $nodeversion
nvm install v16.19.1
node --version
npm --version
npm install -g @angular/cli
# echo "Enter the version of node you want to install: (Example. 'v16.19.1')"
# read nodeversion
# nvm install $nodeversion


#ADDING GIT DOMAIN NAME TO HOSTS #ADDING GIT DOMAIN NAME TO HOSTS
# echo "10.10.5.77 git.bbh.org.in" >> /etc/hosts # echo "10.10.5.77 git.bbh.org.in" >> /etc/hosts

+ 1
- 1
trias_dbserver_script.sh View File

sudo apt update sudo apt update
sudo apt install mysql-server sudo apt install mysql-server
sudo systemctl start mysql.service sudo systemctl start mysql.service
sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
sudo systemctl restart mysql sudo systemctl restart mysql





Loading…
Cancel
Save