摘要: # 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) 编辑
摘要: 首先安装nginxlinux的yum命令 不知道是哪位大仙发明的 真是方便 但也有权限的问题 如果安装过程中提示 you need to be root to perform this command 意思就是说你需要获得root的去权限方法 :进入终端 输入 su 回车 然后 输入你的root的密码 即可安装nginx之前需要安装一些必须的软件 g++ 、gcc 、openssl-devel、pcre-devel、 和zlib-devel、[root@admin] # yum install gc -c++运行中会碰到让你选择y/n 统统y[root@admin]# yum -y insta 阅读全文
posted @ 2014-02-10 12:14 assassin0905 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 简单的cookie保存访问历史记录 阅读全文
posted @ 2013-08-08 23:35 assassin0905 阅读(699) 评论(1) 推荐(1) 编辑
摘要: 感谢博客园 我的第一篇随笔! 阅读全文
posted @ 2013-08-08 17:53 assassin0905 阅读(106) 评论(1) 推荐(0) 编辑