摘要:
cd /usr/local/mysql/bin/grant all privileges on *.* to 'root'@'%' identified by '12345678';flush privileges; 阅读全文
2014年3月13日
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)比如你输入... 阅读全文
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 阅读全文
2014年2月27日
摘要:
打开Apache2.x配置文件http.conf搜索Includeetc/extra/httpd-vhosts.conf,然后去掉前面的#号再编辑extra/httpd-vhosts.conf在最下面添加---------------------------------------------------------OptionsIndexesFollowSymLinksAllowOverrideNoneOrderallow,denyAllowfromallDocumentRoot"/webroot/blog"ServerNamewww.blog.cn----------- 阅读全文
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 阅读全文
2014年1月6日
2014年1月2日
摘要:
http://www.jb51.net/css/56296.html 阅读全文
摘要:
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") !=... 阅读全文
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 阅读全文
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 阅读全文