代码拉取完成,页面将自动刷新
同步操作将从 robinwu/kunlun-atp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Human could manually type commands in Terminal to get the Python version.
[root@genesis ~]# python3 --version
Python 3.6.7
[root@genesis ~]#
Genesis is able to do the exact same thing.
uut = lib.conn.UUT
uut.open()
uut.send('python3 --version\r', expectphrase=']#', timeout=60)
if 'Python 3.6.7' not in uut.recbuf:
raise Exception('Did not found [Python 3.6.7], go to failure')
genesis/genesis
and set it as administrator
yum install -y https://centos7.iuscommunity.org/ius-release.rpm
rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
yum install -y python36u python36u-libs python36u-devel python36u-pip
python3
& pip3
workyum install -y redis
yum install -y httpd
yum install -y mod_ssl
Noted: later Genesis will re-config apache silently
vi /etc/selinux/config
, set SELINUX=disabled
cd /opt
git clone https://gitee.com/andrew2015/genesis.git
cd /opt/genesis
& pip3 install -r requirements.txt
cp /opt/genesis/certificate.crt /opt/
python3 manage.py makemigrations
& python3 manage.py migrate
ln -s /opt/genesis/gen.py /usr/bin/gen
chmod +x /opt/genesis/gen.py
chown -R genesis:genesis /opt
Noted: If you meet any issue above, please raise your hand.
Change username to genesis
from now on.
If you don't have code yet, please use example code:
gen -h
gen stop
cp /opt/genesis/example/example.py /opt/prod/
cp /opt/genesis/example/example_run.py /opt/prod/
cp /opt/genesis/example/__init__.py /opt/prod/
cp /opt/genesis/example/example_config.py /opt/config/
Start Work!
gen start
localhost
or ip address
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。