摘要: 获取栏目列表标签 dede:channel 标签: {dede:channel type='top' row='8' currentstyle="<li><a href='~typelink~' class='thisclass'>~typename~</a> </li>"} <li><a href 阅读全文
posted @ 2016-08-01 16:55 D蓝叶 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 如下表: 先使用str_to_date函数,将其varchar类型转为日期类型,然后从小到大排序 语法:select str_to_date(class_time,'%Y%m%d %H:%i:%s') a from a order by a desc ; 阅读全文
posted @ 2016-07-03 10:41 D蓝叶 阅读(13679) 评论(0) 推荐(0) 编辑
摘要: if $this->ali = 0; 1、new wechat() //该类存于PigCms/lib/ORG/Wechat.class.php 2、list($content,$type) = $this->reply($data); 3、$weixin->response($content,$ty 阅读全文
posted @ 2016-06-30 19:20 D蓝叶 阅读(487) 评论(0) 推荐(0) 编辑
摘要: # Windows查看Apache版本: 使用命令:httpd -v # Linux查看Apache版本: 使用命令:apachectl -v # Windows查看MySQL版本: 使用命令:mysql --version # Linux查看MySQL版本: 使用命令:mysql -V # Win 阅读全文
posted @ 2016-06-30 18:55 D蓝叶 阅读(22300) 评论(0) 推荐(1) 编辑
摘要: # 查看区域 firewall-cmd --get-zones # 查看默认区域 firewall-cmd --get-default-zone # 给区域添加永久性服务 firewall-cmd --add-service=http --zone=public --permanent # 删除区域 阅读全文
posted @ 2016-06-28 19:33 D蓝叶 阅读(241) 评论(0) 推荐(0) 编辑
摘要: # 查看正在运行的服务 systemctl # 查看某个服务的状态 systemctl status httpd.service # 启动服务 systemctl start foo.service 如:systemctl start httpd.service # 停止服务 systemctl s 阅读全文
posted @ 2016-06-27 19:05 D蓝叶 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 列出服务和他们对应的端口: netstat -tulpn 阅读全文
posted @ 2016-06-27 18:36 D蓝叶 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 查看内网:ip addr 查看公网:curl members.3322.org/dyndns/getip 阅读全文
posted @ 2016-06-27 18:34 D蓝叶 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 1、使用yum安装 yum -y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-devel 2、配置httpd 2.1、启动httpd服 阅读全文
posted @ 2016-06-27 10:14 D蓝叶 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 1、开放权限 使用命令:chmod -R 777 文件路径 2、关闭SELinux 使用命令:setenforce 0 阅读全文
posted @ 2016-06-24 21:42 D蓝叶 阅读(279) 评论(0) 推荐(0) 编辑