1.下载安装包
git clone https://github.com/meolu/walle-web.git
2.安装依赖
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
3.安装python3
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
mkdir /usr/local/python3
tar -xf Python-3.7.3.tgz
cd Python-3.7.3
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3
rm -rf /usr/bin/python
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip
ln -s /usr/local/python3/bin/python3 /usr/bin/python
4.修改yum配置文件
[root@admin ~]# cat /usr/bin/yum
#!/usr/bin/python2
[root@admin ~]# cat /usr/libexec/urlgrabber-ext-down
#! /usr/bin/python2
5.安装mysql
vi /etc/yum.repos.d/mysql-community.repo
[mysql58-community]
name=MySql5.7 community server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
yum clean all
yum makecache
rpm -qa|grep mariadb
rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64
yum install -y mysql-community-server
systemctl start mysqld
grep 'temporary password' /var/log/mysqld.log
mysql -uroot -p
create database walle charset=utf8 collate utf8_general_ci;
grant all privileges on walle.* to walle@localhost identified by 'walle';
flush privileges;
6.修改主机名
hostnamectl set-hostname admin.walle-web.io
cat /etc/sysconfig/network
# Created by anaconda
HOSTNAME=admin.walle-web.io
[root@admin walle-web]# cat /etc/resolv.conf
# Generated by NetworkManager
search admin.walle-web.io
yum install epel-release -y
7.安装nginx
yum install nginx -y
egrep -v "^$|#" /etc/nginx/nginx.conf.default >/etc/nginx/nginx.conf
[root@admin ~]# cat /etc/nginx/nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}