- 博客(11)
- 收藏
- 关注
原创 php 脚本接收参数
php 脚本接收参数argv数组变量 索引数组//执行php demo.php a b c//代码打印var_dump($argv);//输出结果 结果第一项是执行文件名array(4) { [0]=> string(8) "demo.php" [1]=> string(1) "a" [2]=> string(1) "b" [3]=> string(1) "c"}getopt方法 关联数组方式一//执行php de
2021-08-13 15:46:14
274
原创 mysql 突然无法启动
mysql 配置项innodb_force_recovery1:忽略检查到的corrupt页。 2:阻止主线程的运行,如主线程需要执行full purge操作,会导致crash。 3:不执行事务回滚操作。 4:不执行插入缓冲的合并操作。 5:不查看重做日志,InnoDB存储引擎会将未提交的事务视为已提交。 6:不执行前滚的操作。 第二次解决加入了有影响的配置项set global log_bin_trust_function_creators=TRUE;...
2021-06-04 16:28:14
98
原创 git 散乱命令
git分支git branch //查看本地所有分支git branch -r //查看远程所有分支git branch -a //查看本地和远程所有分支git branch name //新建分支git branch -b name //新建分支 并切换分支git branch -d name //删除本地分支git branch -d -r name //删除远程分支 须推送到服务器git push origin:namegit branch -m oldname newna
2021-05-17 11:14:58
262
原创 关闭浏览器php程序会继续执行
关闭浏览器php程序会继续执行 正常情况下,如果客户端client异常推出了,服务端的程序还是会继续执行,直到与IO进行了两次交互操作。服务端发现客户端已经断开连接,这个时候会触发一个user_abort,如果这个没有设置ignore_user_abort,那么这个php-fpm的程序才会被中断。connection_status() 函数返回当前的连接状态0 - CONNECTION_NORMAL - 连接运行正常1 - CONNECTION_ABORTED - 连接由用户或网络错误终止2 -
2021-05-11 10:54:19
483
1
原创 centos7基础防火墙
centos7基础防火墙开关防火墙systemctl status firewalld //查看防火墙状态systemctl start firewalld.service //开启systemctl stop firewalld.service //停止firewallsystemctl disable firewalld.service #禁止firewall开机启动firewall-cmd --reload检查端口是否开启firewall-cmd --query-port=80/tc
2021-03-24 14:05:34
179
1
原创 linux 效率命令
查找某个字符串所在行grep -n "what i want" filenamegrep "what i want" filenameawk ‘what i want’ filenamefind . -type f -name filename | xargs grep "what i want"查找并替换字符串perl -pi -e在Perl 命令中加上-e 选项,后跟一行代码,那它就会像运行一个普通的Perl 脚本那样运行该代码.find -name test.txt | xargs
2021-03-21 15:46:46
289
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人