目前cache.php配置文件如下:return[//驱动方式‘type‘=>‘complex‘,‘default‘=>[‘type‘=>‘memcache‘,//服务器地址‘host‘=>‘192.168.1.2‘,//端口‘port‘=>11211,],//redis缓存‘redis‘=>[//驱动方式‘type‘=>‘redis‘,//服务器地址‘h
分类:
其他好文 时间:
2020-10-09 21:23:16
阅读次数:
27
bash和shell是linux下的不同程序,大体功能是一样的,但是命令的解释上(语句的执行)有细微的差别。 已知的不同如下 if-then语句 bash if [ "A" == "B" ]; then shell,];后不能有空格 if [ "A" == "B" ];then bash输出彩色字符 ...
分类:
系统相关 时间:
2020-10-09 20:46:19
阅读次数:
32
cp命令(代表复制)是Linux和其他类似UNIX的操作系统上常用的命令之一,用于复制文件和目录。在本文中,我们将展示如何在Linux中强制执行cp命令覆盖复制操作而无需确认。通常,当你运行cp命令时,它会覆盖目标文件或目录,如下所示。# cp bin/git_pull_frontend.sh te ...
分类:
其他好文 时间:
2020-10-08 18:24:01
阅读次数:
17
默认playbook会检测task执行的返回状态,如果遇到错误则会立即终止playbook的后续task执行,然而有些时候playbook即使执行错误了也要让其继续执行。 加入参数:ignore_errors:yes 忽略错误 - name: Get PHP Install status shell ...
分类:
其他好文 时间:
2020-10-07 21:32:58
阅读次数:
23
Redis设置密码 设置密码有两种方式。 1. 命令行设置密码。 运行cmd切换到redis根目录,先启动服务端 >redis-server.exe 另开一个cmd切换到redis根目录,启动客户端 >redis-cli.exe -h 127.0.0.1 -p 6379 客户端使用config ge ...
分类:
其他好文 时间:
2020-10-07 21:24:47
阅读次数:
32
食物链 || 带权并查集 #include <cstdio> using namespace std; const int maxn=5e4+3; int f[maxn], w[maxn]; void init(int n) { for(int i = 1; i <= n; ++i) f[i] = ...
分类:
其他好文 时间:
2020-10-07 21:22:07
阅读次数:
29
2019-2020 ICPC Northwestern European Regional Programming Contest (NWERC 2019) I-Inverted Deck #include<bits/stdc++.h> using namespace std; const int ...
分类:
其他好文 时间:
2020-10-07 20:36:52
阅读次数:
20
1、点击开启虚拟机,当虚拟机状态处于以下截图状态时,反复按shift键;2、反复按shift键直到出现下图,通过上下键,选择Ubuntu高级选项3、grub菜单页面选择recovery mode4、恢复菜单选择root Drop to root shell prompt,用来获取权限5、在命令行#后 ...
分类:
系统相关 时间:
2020-10-07 20:28:15
阅读次数:
40