安装walle2.0

本文档详细介绍了如何在CentOS系统上安装Walle2.0,包括下载安装包、安装依赖、Python3的安装、MySQL的配置、主机名的修改、Nginx的安装和配置、Walle的配置文件设置,以及手动安装组件的步骤。通过这些步骤,可以成功部署Walle2.0并进行初步的使用。
摘要由CSDN通过智能技术生成

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;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值