项目搭建环境为阿里云centos7服务器。
docker中安装centos拉取最新版centos镜像:
docker pull daocloud.io/centos:latest
运行容器:
docker run -dit --privileged --name=centos7 daocloud.io/centos:latest /usr/sbin/init
查看是否安装成功:
进入到centos系统中:
docker exec -it centos7 /bin/bash在centos中安装mysql 首先安装相应的工具:
yum install -y wget安装MySQL官方的 Yum Repository
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
这个安装稍微要几分钟哈…
安装mysqlyum install -y mysql-server启动mysql
systemctl start mysqld.service
查看mysql的状态:
systemctl status mysqld.service配置mysql
查看mysql的初始密码:
grep "password" /var/log/mysql/mysqld.log
注意文件mysqld.log所在的路径!
修改mysql的密码:
mysql -uroot -p ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
参考链接:https://blog.csdn.net/jason19905/article/details/81366202
安装Anaconda3wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.3.0-Linux-x86_64.sh
对应python版本3.6
运行安装anaconda
yum install bzip2 -y bash Anaconda3-4.3.0-Linux-x86_64.sh
设置安装路径:
报错:
solution:
yum install bzip2 -y
配置anaconda环境变量生效:
source /root/.bashrc
配置conda的源以加快三方模块的安装速度:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --set show_channel_urls yes
conda list 验证是否安装成功!



