From c26a5d1d206900ccfaa0a6e4af2fe430d2def0ab Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:58:51 +0200 Subject: [PATCH] bash install.sh bash install.sh --- install.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..b809538 --- /dev/null +++ b/install.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +echo "Welcome to the installation!" + +# Update and upgrade the package list +sudo apt-get update && sudo apt-get upgrade + +# Install npm, rsync, git, redis-server, and nginx +sudo apt-get install npm rsync git redis-server nginx + +# Install Node.js Version 14.x +curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - +sudo apt-get install -y nodejs + +# Download and install Go 1.21.0 +wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz +sudo rm -rf /usr/local/go +sudo tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz + +# Create a symbolic link for the Go binary +sudo ln -s /usr/local/go/bin/go /usr/local/bin/go + +# Check the installed Go version +go version + +echo "Installation completed!" +