[备忘]新主机Python部署环境初始化清单

换到了ucloud香港主机,17ce发现除了四川和湖北速度不佳,其他的还不错,比国外快不少,你觉得呢

openresty

官网:https://openresty.org/cn/linux-packages.html

vim /etc/yum.repos.d/OpenResty.repo:

[备忘]新主机Python部署环境初始化清单_第1张图片

yum install openresty

Vim

插件管理工具: https://github.com/VundleVim/Vundle.vim

MySQL:

yum install mariadb-server mariadb -y

yum install mysql-devel

systemctl enable mariadb

vim /etc/my.conf:

[备忘]新主机Python部署环境初始化清单_第2张图片

systemctl start mariadb

/usr/bin/mysqladmin -u root password 'new-password'

mysql -uroot -p 'new-password'

create database myblog; GRANT ALL PRIVILEGES ON myblog.* TO 'the5fire'@'localhost' IDENTIFIED BY '123456';

导入数据: mysql -uthe5fire -p '123456'

Python

yum install python-devel

yum install python-setuptools

easy_install pip

pip install virtualenv

Redis

yum install redis

no root user

useradd the5fire

passwd 'suibianshishenmeba'

su - the5fire

chmod 700 ~/.ssh

chmod 600 ~/.ssh/authorized_keys

- from the5fire.com 

文章转自:https://www.the5fire.com/


[备忘]新主机Python部署环境初始化清单_第3张图片

你可能感兴趣的:([备忘]新主机Python部署环境初始化清单)