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/bash | |
| echo "Deploy Maria DB on CentOS 7.4"; | |
| sudo yum -y install mariadb-server mariadb | |
| systemctl start mariadb | |
| systemctl enable mariadb |
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/bash | |
| #sudo yum install -y httpd php55w php55w-opcache php55w-mbstring php55w-gd php55w-xml php55w-pear php55w-fpm php55w-mysql | |
| #sudo yum install centos-release-scl | |
| #sudo yum install php55 php55-php php55-php-gd php55-php-mbstring | |
| #sudo yum install -y php55-php-pgsql | |
| #sudo yum install php55-php-mysqlnd | |
| #sudo yum -y install php |
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/bash | |
| echo "Deploy Postgresql on CentOS 7.4"; | |
| sudo yum -y install postgresql-server postgresql-contrib | |
| sudo postgresql-setup initdb | |
| sudo cp /var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf.save |
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/bash | |
| echo "Deploy Apache 2 on CentOS 7.4"; | |
| sudo yum install httpd | |
| sudo systemctl start httpd | |
| sudo systemctl enable httpd | |
| sudo systemctl status httpd | |
| sudo firewall-cmd --zone=public --permanent --add-service=http | |
| sudo firewall-cmd --zone=public --permanent --add-service=https | |
| sudo firewall-cmd --reload |
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/bash | |
| echo "Deploy nginx on CentOS 7.4"; | |
| sudo yum install -y epel-release | |
| sudo yum install -y nginx | |
| sudo systemctl start nginx | |
| sudo firewall-cmd --permanent --zone=public --add-service=http |
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/bash | |
| echo "Deploy Wildfly Final"; | |
| sudo wget http://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.zip | |
| sudo unzip wildfly-10.1.0.Final.zip -d /opt/ | |
| # sudo nano /opt/wildfly-10.1.0.Final/bin/standalone.conf |
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/bash | |
| echo "Deploy MYSQL server on CentOS 7"; | |
| wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm | |
| md5sum mysql57-community-release-el7-9.noarch.rpm | |
| sudo rpm -ivh mysql57-community-release-el7-9.noarch.rpm |
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/bash | |
| echo "Instalamos Repositorio YUM"; | |
| sudo cat > /etc/yum.repos.d/mongodb-org-3.6.repo <<EOF | |
| [mongodb-org-3.6] | |
| name=MongoDB Repository | |
| baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/3.6/x86_64/ | |
| gpgcheck=0 | |
| enabled=1 | |
| EOF |
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/bash | |
| echo "Instalamos Repositorio YUM"; | |
| echo "Recibe como parametro 1-> ip local"; | |
| sudo cat > /etc/yum.repos.d/mongodb-org-3.6.repo <<EOF | |
| [mongodb-org-3.6] | |
| name=MongoDB Repository | |
| baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/3.6/x86_64/ | |
| gpgcheck=0 | |
| enabled=1 | |
| EOF |
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/bash | |
| echo "Instalando Mongo-DB from repository"; | |
| sudo touch /etc/yum.repos.d/mongodb-org-3.6.repo | |
| echo "[mongodb-org-3.6]" >> /etc/yum.repos.d/mongodb-org-3.6.repo | |
| echo "name=MongoDB Repository" >> /etc/yum.repos.d/mongodb-org-3.6.repo | |
| echo "baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/" >> /etc/yum.repos.d/mongodb-org-3.6.repo | |
| echo "gpgcheck=1" >> /etc/yum.repos.d/mongodb-org-3.6.repo | |
| echo "enabled=1" >> /etc/yum.repos.d/mongodb-org-3.6.repo |