This commit is contained in:
Léo Tsai
2022-04-06 11:14:44 +08:00
parent b080d0a61d
commit 9ecc91356d
5 changed files with 126 additions and 7 deletions
+6 -1
View File
@@ -13,10 +13,15 @@ mysql_secure_installation
# [mysqld]
# character-set-server=utf8
#
# DROP DATABASE `dnslog`;
# CREATE DATABASE `dnslog` CHARACTER SET utf8 COLLATE utf8_general_ci;
curl https://pyenv.run | bash
echo -e '''export PATH="/root/.pyenv/bin:$PATH"\neval "$(pyenv init -)"\neval "$(pyenv virtualenv-init -)"''' >>/root/.bashrc
source /root/.bashrc
mkdir ~/.pyenv/cache
# For chinese user:
wget -P ~/.pyenv/cache/ https://registry.npmmirror.com/-/binary/python/3.8.2/Python-3.8.2.tar.xz
pyenv install 3.8.2
pyenv virtualenv 3.8.2 dnslog
~/.pyenv/versions/dnslog/bin/pip3 install -r ./requirements.txt
@@ -29,4 +34,4 @@ cp dnslog_nginx.conf /etc/nginx/conf.d/
setsebool httpd_can_network_connect on
setenforce permissive
systemctl restart nginx
timedatectl set-timezone Asia/Shanghai
timedatectl set-timezone Asia/Shanghai