spug

业无高卑志当坚,男儿有求安得闲?这篇文章主要讲述spug相关的知识,希望能为你提供帮助。
cat /etc/redhat-release & & uname -a
CentOS Linux release 7.8.2003 (Core)
Linux centos7-1 3.10.0-1127.el7.x86_64
systemctl stop firewalld & & systemctl disable firewalld
echo SELINUX=disabled > /etc/sysconfig/selinux

cp -pv /etc/sysctl.conf /etc/sysctl.conf.bak
echo net.ipv4.tcp_syncookies = 1 > > /etc/sysctl.conf
echo net.ipv4.tcp_tw_reuse = 1 > > /etc/sysctl.conf
echo net.ipv4.tcp_tw_recycle = 1 > > /etc/sysctl.conf
echo net.ipv4.tcp_fin_timeout = 30 > > /etc/sysctl.conf
sysctl -p

yum install -y docker-ce
systemctlrestart docker & & systemctl enable docker
docker --version
Docker version 20.10.8, build 3967b7d

docker pull registry.aliyuncs.com/openspug/spug
mkdir -pv /usr/local/spug宿主机于容器共享目录
docker run -itd --restart=always \\
--name=spug –p 80:80 \\
-v /usr/local/spug/:/data registry.aliyuncs.com/openspug/spug

docker ps | grep spug
6bcb37271af9registry.aliyuncs.com/openspug/spug

docker exec -it spug /bin/bash进入容器
【spug】docker exec -it spug sh -c "more /data/spug/spug_api/spug/overrides.py | grep USER"
\'USER\': \'spug\',

docker exec -it spug sh -c "more /data/spug/spug_api/spug/overrides.py | grep PASSWORD"
\'PASSWORD\': \'spug.dev\',

docker exec spug init_spug admin spug.dev系统初始化
初始化/更新成功
创建用户成功
docker restart spug

http://serverip/

spug

文章图片

admin/spug.dev

spug

文章图片


lsof-i:80
COMMANDPID USERFDTYPE DEVICE SIZE/OFF NODE NAME
docker-pr 3252 root4uIPv4649890t0TCP *:http (LISTEN)

    推荐阅读