Loading

摘要: os.path.exists('/data') 判断目录和文件是否存在,判断当前路径是否存在 os.path.isdir('/data') 判断是否是一个目录os.path.isfile('/data/1.txt') 判断是否是一个文件os.access('/data/a', os.F_OK) 判断 阅读全文
posted @ 2018-04-29 10:58 崔某一 阅读(137) 评论(0) 推荐(0)
摘要: rewrite 语法 last – 基本上都用这个 Flag break – 中止 Rewirte,不再继续匹配 redirect – 返回临时重定向的 HTTP 状态 302 permanent – 返回永久重定向的 HTTP 状态 301 1、下面是可以用来判断的表达式: 2、下面是可以用作判断 阅读全文
posted @ 2018-04-29 10:56 崔某一 阅读(210) 评论(0) 推荐(0)
摘要: nginx配置加上如下代码 再次发送POST请求,返回的和GET请求一样了 阅读全文
posted @ 2018-04-02 18:10 崔某一 阅读(16380) 评论(0) 推荐(1)
摘要: PHP5.6编译安装wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repoyum install zlib-devel libxml2-devel libjpeg-devel libjpeg-turb 阅读全文
posted @ 2018-03-30 18:26 崔某一 阅读(166) 评论(0) 推荐(0)
摘要: 常见报错注释1. command not found 命令没有找到2. No such file or directory 没有这个文件或目录3. Permission denied 权限不足4. No space left on device 磁盘没有剩余空间5. File exists 文件已经 阅读全文
posted @ 2018-03-30 18:18 崔某一 阅读(631) 评论(0) 推荐(0)
摘要: 安装图形化所需要的包GNOME DesktopKDE Plasma Workspaces yum grouplist #查看所有安装包yum groupinstall "GNOME Desktop | KDE Plasma Workspaces" -y #注:如果报错直接跳过就行 查看是否安装成功r 阅读全文
posted @ 2018-03-30 18:14 崔某一 阅读(522) 评论(0) 推荐(0)
摘要: 安装常用命令yum install lrzsz lsof nmap tree nc dos2unix bash-completion net-tools bind-utils -y 阿里云ECS安全优化yum update vim bash libuser grep openssh bind-lib 阅读全文
posted @ 2018-03-30 17:56 崔某一 阅读(1006) 评论(0) 推荐(1)
摘要: git常用命令add #添加文件内容至索引commit #记录变更到版本库status #显示工作区状态diff #显示提交之间、提交和工作区之间等的差异git log –-pretty=oneline #查看最近历史提交的版本信息git diff HEAD -- test.txt #命令可以查看工 阅读全文
posted @ 2018-03-30 17:46 崔某一 阅读(134) 评论(0) 推荐(0)
摘要: kvm常用命令总结virt-install #建立kvm虚拟机virsh list #查看正在运行的KVM虚拟机virsh list --all #查看所有KVM虚拟机virsh start name #启动KVM虚拟机virsh shutdown name #正常关闭KVM虚拟机virsh des 阅读全文
posted @ 2018-03-30 17:11 崔某一 阅读(148) 评论(0) 推荐(0)