会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
陈俊武
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2021年1月12日
PHP 获取一年所有周开始时间结束时间
摘要: /** * 获取某年的每周第一天和最后一天 * @param [int] $year [年份] * @return [arr] [每周的周一和周日] */function get_week($year) { $year_start = $year . "-01-01"; $year_end = $y
阅读全文
posted @ 2021-01-12 16:44 陈俊武
阅读(472)
评论(0)
推荐(0)
2020年4月28日
wkhtmltopdf 参数 详解
摘要: 术语定义 文档对象 “文档对象”是指PDF文档中的文档对象,共有三种类型的“文档对象”,他们分别是“页面对象”,“封面对象”和“目录对象”。 页面对象 “页面对象”是指以页面的形式在PDF文档中呈现的对象,这个是相对于“封面对象”和“目录对象”来讲的。此类对象会成为PDF文档中内容。 封面对象 “封
阅读全文
posted @ 2020-04-28 11:08 陈俊武
阅读(9309)
评论(1)
推荐(0)
2019年12月4日
非root nginx 使用 1024 以下端口
摘要: 方法一 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 陈俊武
阅读(1121)
评论(0)
推荐(0)
2019年11月20日
centos 初始化脚本
摘要: #!/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 陈俊武
阅读(227)
评论(0)
推荐(0)
2019年11月8日
CentOS7.x安装VNC实录
摘要: 来源: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 陈俊武
阅读(190)
评论(0)
推荐(0)
2019年10月29日
php 5.5 collect2: ld returned 1 exit status
摘要: 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 陈俊武
阅读(2086)
评论(0)
推荐(0)
2019年10月24日
centos7 安装cmake3
摘要: 使用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 陈俊武
阅读(13020)
评论(0)
推荐(1)
2019年10月16日
php 模拟多线程
摘要: 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 陈俊武
阅读(508)
评论(0)
推荐(0)
2019年10月15日
g++: internal compiler error: Killed (program cc1plus) 解决办法
摘要: 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 陈俊武
阅读(3288)
评论(0)
推荐(0)
2019年10月14日
lnmp-mysql 源码安装
摘要: 下载对应包 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 陈俊武
阅读(174)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告