官网:https://openresty.org/cn/linux-packages.html
vim /etc/yum.repos.d/OpenResty.repo:
[openresty]
name=Official OpenResty Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
enabled=1
enabled_metadata=1
yum install openresty
插件管理工具: https://github.com/VundleVim/Vundle.vim
vim /etc/my.conf:
[mysqld]
# 省略其他,增加下面一行配置
character-set-server = utf8
[mysql]
# 省略其他,增加下面一行配置
default-character-set = utf8
mysql -uroot -p 'new-password'
create database myblog; GRANT ALL PRIVILEGES ON myblog.* TO 'the5fire'@'localhost' IDENTIFIED BY '123456';
导入数据: mysql -uthe5fire -p '123456'
> user myblog
> source myblog.sql
yum install redis
passwd 'suibianshishenmeba'
su - the5fire chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys