业无高卑志当坚,男儿有求安得闲?这篇文章主要讲述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/
文章图片
admin/spug.dev
文章图片
lsof-i:80
COMMANDPID USERFDTYPE DEVICE SIZE/OFF NODE NAME
docker-pr 3252 root4uIPv4649890t0TCP *:http (LISTEN)
推荐阅读
- 怎样在win10中设置开机启动项
- Linux系列——Kafka的安装与测试
- GaussDB(DWS)如何实现实时,批量和交付式查询一站式开发
- 基于JSP的运动会综合管理系统
- Linux系列——ZooKeeper的安装与测试
- Typora编辑器配置腾讯云图床
- 基于JSP的网上招标系统的设计与实现(含论文)
- Elasticsearch系列——使用kibana或postman操作Elasticsearch的常用命令
- 华为DWS数仓配置教程及体验