Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # !/bin/bash
- # Programa: Instalacao de Ferramentas de Servidores
- # Assunto: Funcoes Multiplas Funcao
- # Compilar: chmod 777
- # FUNCOES: 1
- INSTALADORES()
- {
- # Comandos de atualizacao do sistema e limpeza
- apt-get update
- apt-get upgrade
- apt-get autoclean
- # Comandos
- apt-get install bc
- apt-get install yum
- apt-get install csh
- apt-get install rsync
- apt-get install dialog
- apt-get install ipcalc
- apt-get install ntfs-3g
- apt-get install whiptail
- # MySql 5.7
- wget https://dev.mysql.com/get/mysql-apt-config_0.8.11-1_all.deb
- dpkg -i mysql-apt-config_0.8.11-1_all.deb
- apt-get update
- apt-get install mysql-server
- mysql_secure_installation
- # PHP
- apt-get install php5
- apt-get install phpmyadmin
- apt-get install php php7.0-mysql libapache2-mod-php7.0
- # Servidor [WEB]
- apt-get install apache2
- # WordPress
- wget http://wordpress.org/latest.tar.gz
- tar -xzvf latest.tar.gz
- rsync -avP wordpress/ /var/www/html # Move e autoriza permissoes
- chown -R www-data:www-data /var/www/html
- rm -rf latest.tar.gz
- rm -rf wordpress/
- # SSH
- apt-get install ssh
- # ZIP
- apt-get install zip
- # GIT
- apt-get install git
- }
- # FUNCOES: 2
- ## Ativando Servicos
- UP()
- {
- # Comandos
- service ssh start
- service mysql start
- service apache2 start
- }
- ##################################################
- #################### PROGRAMA ####################
- ##################################################
- INSTALADORES
- UP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement