摘要: 写在前面: yum 安装开发工具 yum groupinstall "Development Libraries" yum groupinstall "Development Tools" yum install ncurses-devel zlib-devel texinfo gtk+-devel 阅读全文
posted @ 2014-08-30 23:18 assassin0905 阅读(565) 评论(0) 推荐(0) 编辑
摘要: //更新key_6字段为随机产生的从300到1300的数字之间条件是fid=844UPDATEmoo_form_dataSETkey_6=FLOOR(300+(RAND()*1000))WHEREfid=844此函数尽量不要使用 效率不高 如果少量数据可以执行此语句来批量更新 阅读全文
posted @ 2014-08-30 19:00 assassin0905 阅读(199) 评论(0) 推荐(0) 编辑
摘要: # mysql -uroot -p mysql> use mysql;mysql> select Host,User from user; 只需要展示用户名和host即可mysql> grant all PRIVILEGES on *.* to wudaogang@'192.168.2.96' ... 阅读全文
posted @ 2014-08-30 18:59 assassin0905 阅读(689) 评论(0) 推荐(0) 编辑
摘要: /** * 友好的时间显示 * * @param int $sTime 待显示的时间 * @param string $type 类型. normal | mohu | full | ymd | other * @param string $alt 已失效 * @return strin... 阅读全文
posted @ 2014-08-30 18:56 assassin0905 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 整理了下抓取页面的一些函数方便以后使用 //抓取页面function getcontents($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setop... 阅读全文
posted @ 2014-08-30 18:55 assassin0905 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 找到nginx下面的nginx.conf文件一般都是在#vim /usr/local/nginx/conf/nginx.conf 找到此处 如果存在pathinfo.conf 则将includepathinfo.conf;前面的#删除 如果没有则添加 location ~ [^/]\.php(/|... 阅读全文
posted @ 2014-08-30 18:53 assassin0905 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 1.查看网络MAC地址 [root@centos ~]# cat /etc/udev/rules.d/70-persistent-net.rules 显示如下信息 # PCI device 0x15ad:0x07b0 (vmxnet3) SUBSYSTEM=="net", ACTION==... 阅读全文
posted @ 2014-08-30 18:45 assassin0905 阅读(391) 评论(0) 推荐(0) 编辑