摘要:
在Domain目录下面有一个以server命名的文件夹,删除整个文件夹就可以了。
阅读全文
posted @ 2013-10-18 09:16
一天不进步,就是退步
阅读(883)
推荐(0)
摘要:
tar zcvf logs.tar.gz logs --exclude=logs/log1
阅读全文
posted @ 2013-10-17 17:25
一天不进步,就是退步
阅读(204)
推荐(0)
摘要:
1.下载urlrewrite,官方下载地址:http://tuckey.org/urlrewrite/2.解压缩文件,将jar放入项目,并创建urlrewrite.xml: 3.将filter添加到web.xml里 UrlRewriteFilter org.tuckey.web.filters.urlrewrite.UrlRewriteFilter UrlRewriteFilter /* 4.修改urlrewrite.xml规则
阅读全文
posted @ 2013-10-17 14:13
一天不进步,就是退步
阅读(252)
推荐(0)
摘要:
火狐浏览器修改userAgent的办法:在火狐浏览器地址栏输入“about:config”,按下回车进入设置菜单。找到“general.useragent.override”,如果没有这一项,则点右键“新建”->“字符串”,输入这个字符串。将其值设为自己想要的UserAgent
阅读全文
posted @ 2013-10-15 19:04
一天不进步,就是退步
阅读(578)
推荐(0)
摘要:
命令#sync #echo3>/proc/sys/vm/drop_caches 查看内存情况:#more/proc/meminfo Kernels 2.6.16 and newer provide a mechanism to have the kernel drop the page cache and/or inode and dentry caches on command, which can help free up a lot of memory. Now you can throw away that script that allocated a ton of memor
阅读全文
posted @ 2013-10-14 17:25
一天不进步,就是退步
阅读(56278)
推荐(0)
摘要:
命令基本格式:1、从 本地 复制到 远程* 复制文件: * 命令格式: scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@remote_ip:remote_file2、从 远程 复制到 本地从 远程 复制到 本地,只要将 从 本地 复制到 远程 的命令 的 后2个参数 调换顺序 即可;
阅读全文
posted @ 2013-10-10 16:09
一天不进步,就是退步
阅读(939)
推荐(0)
摘要:
关闭防火墙[root@localhost ~]# service iptables stopiptables: Flushing firewall rules: [ OK ]iptables: Setting chains to policy ACCEPT: filter [ OK ]iptables: Unloading modules: [ OK ]如果此时无法使用scp命令,可以使用以下命令检测是否安装openssh# rpm -qa |grep openssh如果没有出现包含了openssh client,openssh server,及openssh3个公共组件则说明安装不全或者没有
阅读全文
posted @ 2013-10-09 23:27
一天不进步,就是退步
阅读(842)
推荐(0)
摘要:
Install Redis on CentOS 6.4source:http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/We’re provisioning production machines today!This means that I’m finding a lot of things that I did previously to make my life easier. We use Redis primarily to temporarily cache data retrieved from Ri
阅读全文
posted @ 2013-10-09 22:32
一天不进步,就是退步
阅读(464)
推荐(1)
摘要:
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)解决方案:在java_opts="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n address=port"中修改port值。
阅读全文
posted @ 2013-10-09 15:19
一天不进步,就是退步
阅读(6203)
推荐(0)
摘要:
环境:主机windows xp 虚拟机centos 6.4[root@localhost /]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT[root@localhost /]# /etc/rc.d/init.d/iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ][root@localhost /]# cd /etc[root@localhost etc]# cd init.d[root@localhost init.d]# lsauditd
阅读全文
posted @ 2013-10-08 23:12
一天不进步,就是退步
阅读(1530)
推荐(0)