摘要:
# mysql -uroot -p mysql> use mysql;mysql> select Host,User from user; 只需要展示用户名和host即可mysql> grant all PRIVILEGES on *.* to wudaogang@'192.168.2.96' ... 阅读全文
摘要:
/** * 友好的时间显示 * * @param int $sTime 待显示的时间 * @param string $type 类型. normal | mohu | full | ymd | other * @param string $alt 已失效 * @return strin... 阅读全文
摘要:
整理了下抓取页面的一些函数方便以后使用 //抓取页面function getcontents($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setop... 阅读全文
摘要:
找到nginx下面的nginx.conf文件一般都是在#vim /usr/local/nginx/conf/nginx.conf 找到此处 如果存在pathinfo.conf 则将includepathinfo.conf;前面的#删除 如果没有则添加 location ~ [^/]\.php(/|... 阅读全文
摘要:
1.查看网络MAC地址 [root@centos ~]# cat /etc/udev/rules.d/70-persistent-net.rules 显示如下信息 # PCI device 0x15ad:0x07b0 (vmxnet3) SUBSYSTEM=="net", ACTION==... 阅读全文