#!/bin/bash
screen
adduser deploy
passwd deploy
gpasswd -a deploy wheel
ssh-copy-id deploy@SERVER_IP_ADDRESS
vi /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
Port 2121
systemctl reload sshd
cp /usr/lib/firewalld/services/ssh.xml /etc/firewalld/services/
vi /etc/firewalld/services/ssh.xml
firewall-cmd --reload
yum -y update
echo "your host name" > /etc/hostname
echo "x.x.x.x your host name" >> /etc/hosts
reboot
timedatectl set-timezone Asia/Shanghai
timedatectl set-local-rtc 0
yum groupinstall 'Development Tools'
yum -y install epel-release
yum -y install nginx
yum -y install freetype-devel libjpeg-devel libpng-devel
yum install libxslt-devel python-devel
yum -y install npm
yum -y install libffi-devel
yum -y install mariadb-devel
pip install supervisor --pre
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
tar xf Python-3.5.2.tgz && cd Python-3.5.2 && ./configure && make && make install
su deploy
cd ~
pyvenv venv3
echo_supervisord_conf > supervisord.conf