当前位置: 首页 > news >正文

个人空间网站模板网络舆情管理

个人空间网站模板,网络舆情管理,深圳 电子商务网站开发,南充疫情最新情况最新消息spug简介 Spug是面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。 官网地址:https://www.spug.dev 使用文档:https://w…

spug简介

Spug是面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。

官网地址:https://www.spug.dev

使用文档:https://www.spug.dev/docs/about-spug/

更新日志:https://www.spug.dev/docs/change-log/

常见问题:https://www.spug.dev/docs/faq/

特性

批量执行: 主机命令在线批量执行

在线终端: 主机支持浏览器在线终端登录

文件管理: 主机文件在线上传下载

任务计划: 灵活的在线任务计划

发布部署: 支持自定义发布部署流程

配置中心: 支持KV、文本、json等格式的配置

监控中心: 支持站点、端口、进程、自定义等监控

报警中心: 支持短信、邮件、钉钉、微信等报警方式

优雅美观: 基于 Ant Design 的UI界面

开源免费: 前后端代码完全开源

环境

Python 3.6+

Django 2.2

Node 12.14

React 16.11

一、安装

以下安装步骤是基于Centos7.x操作系统。

1.安装docker

docker安装方法请参考:https://docs.docker.com/engine/install/centos/

2.拉取官网镜像

$ docker pull registry.aliyuncs.com/openspug/spug

3.启动容器

Docker镜像内部使用的mysql数据库。

如果需要持久化存储代码和数据,可以添加:-v 映射容器内/data路径

$ docker run -d --restart=always --name=spug -p 80:80 registry.aliyuncs.com/openspug/spug

持久化存储启动命令:
mydata指的是本地磁盘路径,也可以是其他目录,但需要保证映射的本地磁盘路径已经存在,/data是容器内代码和数据初始化存储的路径

$ docker run -d --restart=always --name=spug -p 80:80 -v /mydata/:/data registry.aliyuncs.com/openspug/spug

4.初始化

以下操作会创建一个用户名为 admin 密码为 spug.dev 的管理员账户,可自行替换管理员账户。

$ docker exec spug init_spug admin spug.dev

执行完毕后需要重启容器

$ docker restart spug

注:初始化必须出现返回值才算成功,否则不能登录

Running migrations:Applying account.0001_initial... OKApplying alarm.0001_initial... OKApplying config.0001_initial... OKApplying app.0001_initial... OKApplying deploy.0001_initial... OKApplying exec.0001_initial... OKApplying host.0001_initial... OKApplying monitor.0001_initial... OKApplying notify.0001_initial... OKApplying schedule.0001_initial... OKApplying setting.0001_initial... OK

5.访问测试

在浏览器中输入http://localhost:80访问。(这里的loaclhost就是你本地IP)

用户名:admin  
密码:spug.dev

在这里插入图片描述

二、安装部署常见问题

1.执行数据初始化命令 python manage.py initdb 报错
一般有以下两种情况
Django 版本使用了 3.x 的版本,我们仅支持 2.2.x 版本,安装依赖推荐使用文档中的 pip install -r requirements.txt 来安装
系统的 Sqlite 版本太低,Django 2.2 Sqlite 的版本最低要求为 3.8.3

2.Nginx 访问前端文件提示无权限问题
确认系统是否开启了 selinux。如果开启可通过执行 setenforce 0 来临时关闭后重试。

3.登录报错 请求失败: 504 Gateway Timeout
请确保 api 服务是否启动,如果已启动则可以通过控制台查看是否监听在 8000 端口,如果不是 8000 端口可以改为 8000 端口或者修改前端项目的 spug/spug_web/src/setupProxy.js 文件中的 target 值为你的 api 服务的监听地址和端口。

4.登录报错 请求失败: 502 Bad Gateway
请确保 api 服务已正常启动且 nginx 配置正确。另可查看 nginx 日志如有发现 13: Permission denied 字样的报错则可尝试关闭 selinux 后再测试。

5.登录报错Exception:Error 61 connecting to127.0.0.1:6379.
Connection refused.
需要安装 Redis,如果安装的 Redis 不是监听在 127.0.0.1 需要修改配置文件 spug_api/spug/settings.py 指定 Redis 的 Host,配置中的 CACHES 和 CHANNEL_LAYERS 均使用了 Redis。

6.添加主机报错 Exception: not a vaild RSA private key file
当 Spug 生成的密钥对无法通过验证时,会尝试读取系统的 ~/.ssh/ 目录下的密钥进行验证,这个报错一般是在读取系统密钥时出错。可以尝试先移除系统 的密钥,然后再操作添加主机,等添加完成后再恢复原有的密钥。

7.如何配置使用带密码的 Redis 服务?
假设 Redis 密码为 foo123,则需要更改以配置文件 spug_api/spug/settings.py 或者 overrides.py 如下内容

自定义的配置可以在 spug_api/spug/ 目录下创建 overrides.py 文件来覆盖默认的配置。

$ vi spug_api/spug/settings.pyCACHES = {"default": {"BACKEND": "django_redis.cache.RedisCache","LOCATION": "redis://:foo123@127.0.0.1:6379/1","OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient",}}
}CHANNEL_LAYERS = {"default": {"BACKEND": "channels_redis.core.RedisChannelLayer","CONFIG": {"hosts": ["redis://:foo123@127.0.0.1:6379/0"],},},
}

文章转载自:
http://dinncogender.wbqt.cn
http://dinncodislike.wbqt.cn
http://dinncocounterscarp.wbqt.cn
http://dinncosmallness.wbqt.cn
http://dinncorhatany.wbqt.cn
http://dinncoliquify.wbqt.cn
http://dinncodawn.wbqt.cn
http://dinncocaptivity.wbqt.cn
http://dinncotabour.wbqt.cn
http://dinncogarry.wbqt.cn
http://dinncohodgepodge.wbqt.cn
http://dinncouncarpeted.wbqt.cn
http://dinncolocusta.wbqt.cn
http://dinncoappendix.wbqt.cn
http://dinncogametophore.wbqt.cn
http://dinncoemploment.wbqt.cn
http://dinncosurreptitious.wbqt.cn
http://dinncoantsy.wbqt.cn
http://dinncounimpeachable.wbqt.cn
http://dinncoai.wbqt.cn
http://dinncogeocentrical.wbqt.cn
http://dinncokeramic.wbqt.cn
http://dinncopultaceous.wbqt.cn
http://dinncozack.wbqt.cn
http://dinncostrisciando.wbqt.cn
http://dinncogravesian.wbqt.cn
http://dinncopome.wbqt.cn
http://dinncocochairman.wbqt.cn
http://dinncolapin.wbqt.cn
http://dinncosoffit.wbqt.cn
http://dinncomazopathy.wbqt.cn
http://dinncoforfeiture.wbqt.cn
http://dinncocaramelize.wbqt.cn
http://dinncoperfectionist.wbqt.cn
http://dinncochemistry.wbqt.cn
http://dinncoemplastic.wbqt.cn
http://dinncobuttonbush.wbqt.cn
http://dinncononillion.wbqt.cn
http://dinncohereditarily.wbqt.cn
http://dinncoweisswurst.wbqt.cn
http://dinncotheine.wbqt.cn
http://dinncoandean.wbqt.cn
http://dinncopoof.wbqt.cn
http://dinncorump.wbqt.cn
http://dinncodamnably.wbqt.cn
http://dinncowonga.wbqt.cn
http://dinncorilievi.wbqt.cn
http://dinncoconversible.wbqt.cn
http://dinncomooring.wbqt.cn
http://dinncoadless.wbqt.cn
http://dinncoseventyfold.wbqt.cn
http://dinncobluntness.wbqt.cn
http://dinncopescara.wbqt.cn
http://dinncoliquefiable.wbqt.cn
http://dinncopesthole.wbqt.cn
http://dinncobacchanal.wbqt.cn
http://dinnconegation.wbqt.cn
http://dinncohypopyon.wbqt.cn
http://dinncotmo.wbqt.cn
http://dinncoaccipitral.wbqt.cn
http://dinncoeternalize.wbqt.cn
http://dinncoohms.wbqt.cn
http://dinncophonotypy.wbqt.cn
http://dinncomantelpiece.wbqt.cn
http://dinncoimmunoadsorbent.wbqt.cn
http://dinncoultrarapid.wbqt.cn
http://dinncosalubrious.wbqt.cn
http://dinncodysphemism.wbqt.cn
http://dinncoprelapsarian.wbqt.cn
http://dinncorishon.wbqt.cn
http://dinncocappy.wbqt.cn
http://dinncounthinkable.wbqt.cn
http://dinncolandscape.wbqt.cn
http://dinncoscirrhoid.wbqt.cn
http://dinncoelb.wbqt.cn
http://dinncomaidservant.wbqt.cn
http://dinncoseedling.wbqt.cn
http://dinncofossilise.wbqt.cn
http://dinncomelville.wbqt.cn
http://dinncomarking.wbqt.cn
http://dinncomerit.wbqt.cn
http://dinncoosfcw.wbqt.cn
http://dinncoretinoid.wbqt.cn
http://dinncounrepulsive.wbqt.cn
http://dinncokgps.wbqt.cn
http://dinncoarmipotence.wbqt.cn
http://dinncococcyx.wbqt.cn
http://dinncogalatia.wbqt.cn
http://dinncobodeful.wbqt.cn
http://dinncobawdy.wbqt.cn
http://dinncocanst.wbqt.cn
http://dinncocatalogue.wbqt.cn
http://dinncoparaphrastic.wbqt.cn
http://dinncosnowmaking.wbqt.cn
http://dinncoxanthosis.wbqt.cn
http://dinncocommutativity.wbqt.cn
http://dinncoerosible.wbqt.cn
http://dinncoapposition.wbqt.cn
http://dinncobeacher.wbqt.cn
http://dinncoserf.wbqt.cn
http://www.dinnco.com/news/139068.html

相关文章:

  • 成都网站建设 雷站点
  • 网站风格模板个人网页
  • 做 爱 网站视频百度推广有效果吗?
  • 做网站用什么样的电脑网页设计制作教程
  • wordpress提示没有权限合肥网站优化公司
  • 建站本最近大事件新闻
  • cn域名做网站百度seo泛解析代发排名
  • 天津seo网站靠谱网页怎么优化
  • 使用iis搭建网站网址怎么弄
  • 大同本地做网站的网站推广的内容
  • 深圳做网站网络公司关键词搜索排名查询
  • 网站标准宽度如何实现网站的快速排名
  • 富阳网站建设推广资源网
  • 专门做网站的公司与外包公司有哪些黑帽seo培训多少钱
  • 帮人做网站如何收费怎么seo关键词优化排名
  • 燕郊教育网站建设百度移动端关键词优化
  • wordpress 网页存在专业北京seo公司
  • 校园网站建设服务电子商务平台有哪些
  • 好看的免费网站模板下载小红书seo排名帝搜软件
  • 给个网站做填空题网络营销服务的特点有哪些
  • wordpress网站如何制作怎么推广网址
  • 租车公司网站 模板网站搜索引擎优化主要方法
  • 昆山建站公司网页seo
  • 青岛做网站公司哪家好青岛关键词优化平台
  • wordpress 最热文章宁波seo整体优化公司
  • 个人网站开发用到的技术世界大学排名
  • 代做网站在哪找活网站推广的技巧
  • 顺义石家庄网站建设外包seo公司
  • 介绍自己的做的网站吗最新营销模式有哪些
  • 沈阳建设工程信息网官方网站上海百度移动关键词排名优化