方法1. phpmyadmin/libraries/config.default.php找到这一行: $cfg[‘LoginCookieValidity’] = 1440; 改为 $cfg[‘LoginCookieValidity’] = 86400; 一天 在上面这行下面添加一行: ini_set(‘session.gc_maxlifetime’, 86400); 方法2. phpMyadmin所在的目录下找到“config.inc.php”文件里面的 $cfg[‘Servers’][$i][&#…
你可能需要了解一下 MySQL 的 null 和 not null
相信很多用了 MySQL 很久的人(特别是平时过多关注业务开发的人),对这两个字段属性的概念还不是很清楚,一般会有以下疑问: 我字段类型是 not null,为什么我可以插入 空值; 为毛 not null 的效率比 null 高; 判断字段不为空的时候,到底要 column <> ” 还是要用 column is not null 呢。 带着上面几个疑问,我们来深入研究一下 null 和 not null 到底有什么不一样。 null 和 空值 一样么? 首先,我们要搞清楚 空值 和 null 的概念: 空值 是不占用空间的; MySQL中的 null 其实是占用空间…
使用Let’s Encrypt 配置免费HTTPS通配符证书
安装certbot https://certbot.eff.org/lets-encrypt/centosrhel7-nginx 执行 certbot certonly -d *.xxx.com -d xxx.com –manual –preferred-challenges dns –server https://acme-v02.api.letsencrypt.org/directory 提示信息 NOTE: The IP of this machine will be publicly logged as having requested this c…
Git修改远程仓库地址
方式1: 直接修改配置文件 vim .git/config 修改[remote “origin”]这一项里面的url值 [remote “origin”] url = git@git.coding.net:jinhuatai/suning_lcs_h5.git 方式2: 使用命令: git remote set-url origin 远程仓库地址 可以执行 git remote –help 看看都有哪些选项: usage: git remote [-v | –verbose] or: git remote add [-t…
mac抓包工具Charles 注册码
选择菜单—> help—> register….. —->输入下列序列码
1 2 |
<span class="line">Registered Name: https://zhile.io</span> <span class="line">License Key: 48891cf209c6d32bf4</span> |
Linux查看网络负载状态iftop
iftop是一个类似于top的实时流量检测工具,可以用来监控网卡的实时流量(可以指定网段)、反向解析IP、显示端口信息等。 首先 先安装iftop工具 yum install -y iftop 安装完成后直接运行效果图如下: 界面上面显示的是类似刻度尺的刻度范围,为显示流量图形的长条作标尺用的。 中间的<= =>这两个左右箭头,表示的是流量的方向。 TX:发送流量 RX:接收流量 TOTAL:总流量 Cumm:运行iftop到目前时间的总流量 peak:流量峰值 rates:分别表示过去 2s 10s 40s 的平均流量 常用的参数 -i设定监测的网卡,如:# iftop -i e…
Liunx 查看负载top命令解释
经常使用top命令来查看cpu负载,显示出来的界面有很多选项,下面那分别介绍都是什么意思。 执行top命令可以看到如下显示 top top – 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48 Tasks: 29 total, 1 running, 28 sleeping, 0 stopped, 0 zombie Cpu(s): 0.3% us, 1.0% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 191272k …
Linux更改用户目录
比如:要修改test这个账号的所属目录,找到test用户, 把/home/test/ 修改为新的目录即可。 vim /etc/passwd test:x:1002:1002::/home/test/:/sbin/nologin 修改为 test:x:1002:1002::/www/wwwroot/:/sbin/nologin
Linux创建sftp账号 使用sftp传输文件
1.创建sftp组 groupadd sftp 2.创建sftp用户 -G 指定用户属于sftp 用户组 -s 禁止用户ssh登陆 useradd -G sftp -s /sbin/nologin testsftp 3.指定testsftp用户的密码 passwd testsftp 4.修改sshd的配置文件 vim /etc/ssh/sshd_config 注释 Subsystem sftp /usr/libexec/openssh/sftp-server 这一行 添加下面这行 Subsystem sftp internal-sftp #注意,以下要 放在 本文件的最后行,否则 root…
PHP报错:The Process class relies on proc_open, which is not available on your PHP installation.
意思是Process类依赖于proc_open, 在这个安装的PHP版本中无法使用。 原因:proc_open这个函数被禁用了。 解决方法:在php.ini中,找到disable_functions选项,看看后面是否有proc_open,如果有的话,去掉即可