葫芦儿打包
setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinuxmkdir -p /data/soft/huluer/{src,python3.6,nginx,redis,uwsgi,celery,backend,frontend}getent group huluer > /dev/null || groupadd -r huluer getent passwd huluer > /dev/null || useradd -r -d /data/soft/huluer -g huluer -s /sbin/nologin huluer
配置 python3.6
yum install -y gcc-c++ valgrind-devel systemtap-sdt-devel \ bzip2-devel ncurses-devel gdbm-devel sqlite-devel openssl-devel \ readline-devel zlib-devel xz-devel tk-devel wgetwget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz -P /data/soft/huluer/src/ cd /data/soft/huluer/src/ tar xvf Python-3.6.8.tgz cd Python-3.6.8./configure --prefix=/data/soft/huluer/python3.6 \ --enable-ipv6 \ --with-computed-gotos=yes \ --with-dbmliborder=gdbm:ndbm:bdb \ --with-system-expat \ --with-system-ffi \ --enable-loadable-sqlite-extensions \ --with-dtrace \ --with-valgrind \ --with-ensurepip \ --enable-optimizations make && make install/data/soft/huluer/python3.6/bin/python3.6 -V /data/soft/huluer/python3.6/bin/pip3.6 -V/data/soft/huluer/python3.6/bin/pip3.6 install -r /data/soft/huluer/backend/requirements.txt
配置 nginx
配置 redis
配置 celery
配置 uwsgi
打包
最后更新于