This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
sudo service sshd restart | |
pgrep java | sudo xargs kill -9 | |
sudo yum update -y | |
sudo yum install -y net-tools java-1.8.0-openjdk.x86_64 maven.noarch | |
cat > /etc/yum.repos.d/cassandra.repo << EOL | |
[cassandra] | |
name=cassandra repo | |
baseurl=https://downloads.apache.org/cassandra/redhat/311x/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
sudo service sshd restart | |
cat > /etc/yum.repos.d/nginx.repo << EOL | |
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/mainline/centos/7/\$basearch/ | |
gpgcheck=0 | |
enabled=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
sudo service sshd restart | |
pgrep java | sudo xargs kill -9 | |
sudo yum update -y | |
sudo yum install -y net-tools java-1.8.0-openjdk.x86_64 maven.noarch | |
rm -rf kafka_2.13-2.4.0 | |
curl -L -O -C - http://mirrors.estointernet.in/apache/kafka/2.4.0/kafka_2.13-2.4.0.tgz | |
tar -zxvf kafka_2.13-2.4.0.tgz | |
cd kafka_2.13-2.4.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
sudo service sshd restart | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum update -y | |
sudo yum install -y docker-ce net-tools java-1.8.0-openjdk.x86_64 maven.noarch git | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose | |
sudo chmod 775 /usr/bin/docker-compose | |
sudo service docker restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cat > /etc/yum.repos.d/mariadb.repo <<EOL | |
[mariadb] | |
name = MariaDB | |
baseurl = http://yum.mariadb.org/10.3.22/centos7-amd64 | |
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB | |
gpgcheck=1 | |
enabled=1 | |
EOL | |
sudo yum update -y |