Centos7 安装迅雷云监工 crysadm

未分类

2016-07-20

69

0

环境
Centos7.0

资源
python3.4.1 https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
redis http://download.redis.io/releases/redis-3.2.1.tar.gz
crysadm https://github.com/sanzuwu/crysadm

命令
wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz
wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz
wget http://download.redis.io/releases/redis-3.2.1.tar.gz
git clone https://github.com/sanzuwu/crysadm.git

安装python3

1.下载python3
wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz

2.编译安装python3
准备
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel

解压python3
tar zxvf Python-3.4.1.tgz

编译python3
cd Python-3.4.1/
./configure
make all
make install
make clean
make distclean

测试
python3 -V

CentOS安装python包管理安装工具pip

wget https://bootstrap.pypa.io/ez_setup.py
python ez_setup.py

easy_install pip

安装Python-redis

文件包准备

下载地址:
https://pypi.python.org/packages/source/r/redis/redis-2.10.3.tar.gz
wget https://pypi.python.org/packages/source/r/redis/redis-2.10.5.tar.gz

tar zxvf redis-2.10.5.tar.gz

python3.4 setup.py install

提醒:可以本地下载,复制到服务器端,也可以在服务器端(Oracle Linux)通过Wget(wget –no-check-certificate https://pypi.python.org/packages/source/r/redis/redis-2.10.3.tar.gz)下载,因为服务器端多次没有下载成功,所以我选择下载到本地。
注意:python模块包与当前python版本息息相关,下载对应版本的模块包可以到下面这个地址查找

安装redis、requests、flask模块
easy_install-3.4 redis
easy_install-3.4 requests
easy_install-3.4 flask

也可以使用
pip3.4 install redis
pip3.4 install requests
pip3.4 install flask

安装redis

yum install epel-release.noarch
reboot
yum install redis

安装crysadm
yum install git
cd /usr/local/
git clone https://github.com/sanzuwu/crysadm.git
cd crysadm
sudo chmod +x get-pip.py&&python3.4 get-pip.py

python3.4 crysadm_helper.py &
python3.4 crysadm.py &

systemctl start redis.service
python3.4 ./crysadm/crysadm_helper.py >> /tmp/error 2>&1 &
python3.4 ./crysadm/crysadm.py >> /tmp/error 2>&1 &

杀死python3.4进程
pkill python3.4

打赏一个呗~~

发表评论

全部评论:0条

Cennac

这家伙很赖,连签名都懒得填写...

热评文章

推荐文章

热门标签