摘要: /** * 获取某年的每周第一天和最后一天 * @param [int] $year [年份] * @return [arr] [每周的周一和周日] */function get_week($year) { $year_start = $year . "-01-01"; $year_end = $y 阅读全文
posted @ 2021-01-12 16:44 陈俊武 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 术语定义 文档对象 “文档对象”是指PDF文档中的文档对象,共有三种类型的“文档对象”,他们分别是“页面对象”,“封面对象”和“目录对象”。 页面对象 “页面对象”是指以页面的形式在PDF文档中呈现的对象,这个是相对于“封面对象”和“目录对象”来讲的。此类对象会成为PDF文档中内容。 封面对象 “封 阅读全文
posted @ 2020-04-28 11:08 陈俊武 阅读(8038) 评论(1) 推荐(0) 编辑
摘要: 方法一 chown root nginxchmod u+s nginx方法二 使用非80端口启动程序,然后再用iptables做一个端口转发。 (自己没经过验证) iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-por 阅读全文
posted @ 2019-12-04 14:29 陈俊武 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash # Optimize the system after installation PASSWD=reid NETIP=192.168.56.11 PROTOBOOT=static HOSTNAME=linux-node1.example.com DNS1=192.168.56 阅读全文
posted @ 2019-11-20 11:10 陈俊武 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 来源:https://blog.csdn.net/nahancy/article/details/86316971不知不觉,centos已经到7.6了,在服务器操作系统中,centos是用的比较多的,占很大的比例。由于7.x版本和6.x版本有区别,最近安装了7.6的VNC,特记之。 VNC需要系统安 阅读全文
posted @ 2019-11-08 10:26 陈俊武 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Make编译安装php出现collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1的解决方法 在 2018年4月16日 上张贴 由 gushou发表回复 -lresolv -lcrypt -lmcrypt -lltdl 阅读全文
posted @ 2019-10-29 11:30 陈俊武 阅读(2019) 评论(0) 推荐(0) 编辑
摘要: 使用yun install cmake3 安装 ,不会覆盖centos7 cmake 1 添加cmake3 源 echo '[group_kdesig-cmake3_EPEL]name=Copr repo for cmake3_EPEL owned by @kdesigbaseurl=https:/ 阅读全文
posted @ 2019-10-24 09:47 陈俊武 阅读(12913) 评论(0) 推荐(1) 编辑
摘要: 1、linux下的php多线程 下面所讲的东西是源自php的pcntl_fork函数.因为这个函数依赖操作系统fork的实现,所以本文所讲的东西只适用于linux/unix。那么先看看这个函数的用法吧.php手册上是这么说的: 1 2 3 4 5 6 7 8 <?php $pid = pcntl_f 阅读全文
posted @ 2019-10-16 15:21 陈俊武 阅读(495) 评论(0) 推荐(0) 编辑
摘要: g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report 问题原因是因为内存不足 使用交换分区来解决: sudo dd if=/dev/zero of=/swapfile bs=64M 阅读全文
posted @ 2019-10-15 17:15 陈俊武 阅读(3064) 评论(0) 推荐(0) 编辑
摘要: 下载对应包 wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.20.tar.gzwget --no-check-certificate http://sourceforge.net/projects/boost/files/bo 阅读全文
posted @ 2019-10-14 14:17 陈俊武 阅读(165) 评论(0) 推荐(0) 编辑