摘要:
错误信息Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName[Fri Mar 08 16:28:42 2013] [warn] NameVirtualHost *:7002 has no VirtualHosts(13)Permission denied: make_sock: could not bind to address [::]:7002(13)Permiss 阅读全文
2013年3月8日 #
摘要:
把 7001端口转发到 192.168.168.132:8089 上# iptables -t nat -I PREROUTING -p tcp --dport 7001 -j DNAT --to 192.168.168.132:8089# iptables -t nat -I POSTROUTING -p tcp -d 192.168.168.132 --dport 8089 -j MASQUERADE# /etc/rc.d/init.d/iptables save# /etc/rc.d/init.d/iptables restart# echo 1 > /proc/sys/net/i 阅读全文
2013年3月5日 #
摘要:
http://buildmobile.com/http://www.sitepoint.com/ 阅读全文
2013年1月7日 #
摘要:
<?php$db = 'ecs_e94f4d07d259f246';$conn = open_db($db);$data = show_db($db);echo($data);// 获取数据库信息function show_db($db) { $data = '<h1>数据库设计说明书('.$db.')</h1>'; $tables = show_tables(); foreach($tables as $key=>$val) { $table = current($val); $data .= '&l 阅读全文
2012年1月9日 #
摘要:
1. 备份数据库mysqldump -uroot -p test_db > test_db.sql2. 恢复数据库mysql -uroot -p test_db < test_db.sql 3. 创建权限grant all privileges on test_db.* to test_db@'localhost' identified by '123456';兼容mysql4.1之前模式:update mysql.user set password=old_password('123456') where user='tes 阅读全文
2010年8月25日 #
摘要:
离开页面时,检测表单元素是否被修改,然后给出提示.代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--window.onbeforeunload=function(){if(is_form_changed()){return"您的修改内容还没有保存,您... 阅读全文
2010年6月28日 #
摘要:
装个win2003的虚拟机轻松搭建PHP5和SQL Server 2005开发环境http://dev.firnow.com/course/4_webprogram/php/phpjs/2008617/126051.htmlAJAX中文乱码PHP完美解决(IE和Firefox兼容)http://blog.csdn.net/wjazz/archive/2008/05/12/2435098.aspx 阅读全文
2010年6月11日 #
摘要:
rsync命令#rsync -av --progress /mnt/yidong2/full20100526.tar.gz /mnt/yidong1/[以上命令] 可以实现本机带进度条提示拷贝,可以实现不同机器带进度条提示拷贝,可以拷贝多个文件scp命令#scp -v /mnt/yidong2/full20100526.tar.gz /mnt/yidong1/ [以上命令] 本机拷贝无法显示进度#... 阅读全文
2010年6月8日 #
摘要:
在网上阅读了很多网友的文章,经过学习实践并记录整理,希望能方便更多的网友。1、安装fusehttp://fuse.sourceforge.net/#wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.7.6/fuse-2.7.6.tar.gz?use_mirror=ncu#tar -zxvf fuse-2.7.6.tar.gz... 阅读全文
2010年6月3日 #
摘要:
在上一个版本(http://www.cnblogs.com/coffee_cn/archive/2010/06/02/1750225.html)的基础上把js部分代码调整的稍微通用一些,当需要添加“单选框”或“复选框”时,直接拷贝html代码即可。[代码]当需要添加“单选框”或“复选框”的时候,直接拷贝... 阅读全文