2014年3月13日

摘要: cd /usr/local/mysql/bin/grant all privileges on *.* to 'root'@'%' identified by '12345678';flush privileges; 阅读全文
posted @ 2014-03-13 15:51 hxl2009 阅读(294) 评论(0) 推荐(0) 编辑

2014年3月8日

摘要: nginx是一个代理(apache)或者自己处理 location ~ \.php { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf; }如果自己处理fastcgi_pass unix:/tmp/php-cgi.sock;如果代理 写你代理地址比如 127.0.0:9090 (apache)比如你输入... 阅读全文
posted @ 2014-03-08 13:57 hxl2009 阅读(200) 评论(0) 推荐(0) 编辑

2014年3月3日

摘要: modify port XAMPP: Another web server daemon is already running.看不懂翻译一下1. Open the file /opt/lampp/etc/httpd.conf2. Search the "Listen 80" and change it to some other port (e.g. Listen 2145) (Line No. 40)3. Open the file /opt/lampp/etc/extra/httpd-ssl.conf4. Search the "Listen 443&quo 阅读全文
posted @ 2014-03-03 22:28 hxl2009 阅读(271) 评论(0) 推荐(0) 编辑

2014年2月27日

摘要: 打开Apache2.x配置文件http.conf搜索Includeetc/extra/httpd-vhosts.conf,然后去掉前面的#号再编辑extra/httpd-vhosts.conf在最下面添加---------------------------------------------------------OptionsIndexesFollowSymLinksAllowOverrideNoneOrderallow,denyAllowfromallDocumentRoot"/webroot/blog"ServerNamewww.blog.cn----------- 阅读全文
posted @ 2014-02-27 21:08 hxl2009 阅读(486) 评论(0) 推荐(0) 编辑

2014年2月22日

摘要: server-id=1log-bin=/var/lib/mysql/mysql-bin.log重启show master status\G;打开mysqlflush tables with read lock;exit;mysqldump -hlocalhost -uroot -p3306 -p test >/home/test.sqlcd /homescp test.sql root@192.168.52.129:/home/mysql unlock tables;grant replication slave on "." to 'slaveuser 阅读全文
posted @ 2014-02-22 17:05 hxl2009 阅读(172) 评论(0) 推荐(0) 编辑

2014年1月6日

摘要: 可以在 删除图标 上面显示 删除字样http://api.jqueryui.com/tooltip/#event-open表单美化工具jquery uniformjGrowl 提示框插件 阅读全文
posted @ 2014-01-06 14:15 hxl2009 阅读(102) 评论(0) 推荐(0) 编辑

2014年1月2日

摘要: http://www.jb51.net/css/56296.html 阅读全文
posted @ 2014-01-02 14:17 hxl2009 阅读(217) 评论(0) 推荐(0) 编辑
 
摘要: 1 $(document).ready(function(){ 2 $("#rightNav").click(function(){ 3 $("#rightNav ul").toggle(); 4 }) 5 6 $("html").click(function(e){ 7 console.info( $(e.target).attr("class")); 8 if( $(e.target).attr("class") !=... 阅读全文
posted @ 2014-01-02 14:03 hxl2009 阅读(461) 评论(0) 推荐(0) 编辑

2013年8月5日

摘要: mount,也就是挂载。如果是让电脑自己挂载Windows的分区,也就是你直接在文件管理器里点击那些Windows的盘符,系统就会帮助你自动挂载,不过其挂载后的名称太长太复杂,不方便终端操作。所以还是手动挂载吧。关于挂载mount的更加详细的介绍,请自己去看看,直接在你的终端输入命令man mount好的,下面说具体怎么挂载,mount的命令选项有很多,这里只说几个。1.看看mount的用法mount -a [-t|-O] ... : mount all stuff from /etc/fstabmount device : mount device at the known placemou 阅读全文
posted @ 2013-08-05 15:36 hxl2009 阅读(370) 评论(0) 推荐(0) 编辑

2013年8月2日

摘要: 如果你的IPTABLES基础知识还不了解,建议先去看看.开始配置我们来配置一个filter表的防火墙.(1)查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (policy ACCEPT)target prot opt source destinationChain OUTPUT (policy ACCEPT)target prot opt source destinationChain RH-Firew 阅读全文
posted @ 2013-08-02 14:19 hxl2009 阅读(209) 评论(0) 推荐(0) 编辑