# cat check_gitlab_bak.sh #!/bin/sh source /etc/profile # 定义邮件发送列表 maillist=( zise@feizhu.com ) # 发送邮件函数 send_mail(){ for mail in ${maillist[*]}; do e ...
分类:
其他好文 时间:
2020-11-24 12:46:56
阅读次数:
8
功能:解决web站点的登录,权限验证,授权等功能 优点:在不影响站点业务代码,可以权限的授权与验证横切到业务中 1、要添加的依赖 1 <!--thymeleaf--> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <ar ...
分类:
编程语言 时间:
2020-11-24 12:34:10
阅读次数:
9
问题一:[root@cdeba90ec46e~]#./configure--prefix=/usr/local/nginx--user=www--group=www--with-http_stub_status_modulebash:./configure:Nosuchfileordirectory//解决思路:表示在执行预编译./configure没有找到configure执行文件,改文件不存在
分类:
其他好文 时间:
2020-11-24 12:21:39
阅读次数:
7
mysql/Mariadb多实例教程:一、概述关系型数据库常见组件:数据库:database表:table行:row列:column索引:index视图:view用户:user权限privilege存储过程:procedure,无返回值存储函数:function,有返回值触发器:trigger时间调度器:eventscheduler,任务计划二、创建多实例:1、设计规划;环境检查:在一个服务器上跑
分类:
数据库 时间:
2020-11-24 12:20:23
阅读次数:
9
Github是许多程序员上传和展示自己的作品的平台,而Github的profile页面只允许pin 6个repo。如果你有超过6个作品想要展示 只选6个最想要展示的,忍痛舍弃其他的? 另外做一个网站来一个个介绍你的repo? 不如自己弄一个Github风格的橱窗展示页面,直接调用Github API ...
分类:
其他好文 时间:
2020-11-23 12:39:01
阅读次数:
8
一、前言 上篇文章有提及pytest.mark.parametrize的使用,这次在此基础上结合fixture和request再做个延伸。 二、传单个参数 即一个参数一个值,示例代码如下: # 传单个参数 @pytest.fixture() def getuser(request): user = ...
分类:
其他好文 时间:
2020-11-23 12:20:56
阅读次数:
4
问题一: [root@cdeba90ec46e ~]# ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module bash: ./configure: No such fil ...
分类:
其他好文 时间:
2020-11-23 12:11:38
阅读次数:
5
这个错误是缺少权限的意思 访问这个路径需要指定的角色,代码中是这样的: 主要这里配置的是访问任意路径都需要USER角色 然后数据库角色表中必须是这样的: 带有ROLE_前缀!!! ROLE_USER!!!!!!!! 参考: https://blog.csdn.net/qq_27093097/arti ...
分类:
其他好文 时间:
2020-11-23 12:07:52
阅读次数:
7
1、haproxy配置多个负载 global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #daemon debug user haproxy group haproxy maxconn 4096 defaults log global mode ...
分类:
其他好文 时间:
2020-11-23 12:06:36
阅读次数:
5
记录一个优化sql的实际案例 三张表, 表结构, 索引如下: tb_phoneback_apply有user_id, handle_userid 索引 以及一个 status 和 create_time组合索引. 优化前sql SELECT a.id, IFNULL(u.user_name, u.u ...
分类:
数据库 时间:
2020-11-23 11:58:56
阅读次数:
11