logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

centos7安装influxdb,prometheus配置远程读写

文章目录1. 安装influxdb1.存储库添加到yum配置2. 安装3. 启动失败:systemctl status influxdb查看启动状态发现报错4. 解决权限问题:5. 为用户授权(这里如果在配置文件中修改了对应的文件存储路径也需要对修改后的文件路径授权)6. 重新启动: systemctl start influxdb7. 启动客户端8. 添加用户登录认证:9. 修改配置文件(默认/

#prometheus
restframework单元测试

示例代码:from rest_framework import statusfrom rest_framework.serializers import Serializerfrom rest_framework.test import APITestCasefrom apps.models import Userclass UserAPITests(APITestCase):# 此测...

#单元测试
ubuntu18.04安装python3.10.13

【代码】ubuntu18.04安装python3.10.13。

文章图片
#python#开发语言
环境变量设置为https://goproxy.cn,还是无法下载解决方案(工具:goland)

设置GO111MODULE=“on”GoLand在项目设置中应该叫“ Go Modules(vgo)”的选项,把里面的“ Proxy”设置为https://goproxy.cn就好了,如果你是Go 1.13的话就设置成https://goproxy.cn,direct...

#golang
ubuntu18.04下安装go开发环境以及开发工具goland

由于最近工作需要,所以想要学习一下go,再次记录开发环境以及开发工具安装的步骤一: 安装go的开发环境go开发环境的下载网址: https://golang.google.cn/dl/ubuntu就下载linux的然后找到刚才的下载目录,将下载的二进制包解压至 /usr/local目录tar -C /usr/local -xzf go1.12.7.linux-amd64.tar...

mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column...解决方案

MySQL5.7.5后only_full_group_by成为sql_mode的默认选项之一,这可能导致一些sql语句失效。比如在使用group by进行分组查询报错1 查看自己的sql_mode配置:在sql命令行中输入select @@sql_mode;这时我们能够看到自己的sql_mode配置,其中如果有ONLY_FULL_GROUP_BY,那它就是group by查询报错的罪魁祸...

#mysql
gitlab解决冲突(拉取到本地)

第一步:Fetch and check out the branch for this merge requestgit fetch origingit checkout -b 你的分支 origin/你的分支第二步: Review the changes locally第三步:Merge the branch and fix any conflicts that come upgit...

#git
django中的queryset合并

将queryset合并在网上找到两种方法1、使用chain拼接from itertools import chainquerysets = chain(one_queryset,two_queryset)该方法有人说可行,但是测试总是报错,不是特别清楚原因2、使用 | 直接将两个queryset拼接起来querysets = one_queryset | two_queryset...

django中Appconfig

django的project由多个app组成。project的设置由setting指定,而每个app的设置由AppConfig指定。app和project主要由INSTALL_APPS联系,也有url和middleware等等.AppConfig的属性通过__init__初始化的属性:name: app的路径名module: app的模块def __init__(self, app_na...

django中的models的常用字段及属性

django 模型models 常用字段1、models.AutoField  自增列 = int(11)如果没有的话,默认会生成一个名称为 id 的列如果要显式的自定义一个自增列,必须设置primary_key=True。2、models.CharField  字符串字段  必须设置max_length参数3、models.BooleanField  布尔类型=tinyint(...

    共 13 条
  • 1
  • 2
  • 请选择