`
samwang
  • 浏览: 45106 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
http://www.techiecorner.com/175/how-to-migrate-svn-repository/ There are only few easy steps to migrate svn repository. This post is for my own notes, in case i forget how to migrate svn repository again! Below is the steps to migrate SVN repository:- Start your terminal $ svnadmin dump /path/to/y ...
http://beerpla.net/2007/08/04/watch-a-useful-linux-command-you-may-have-never-heard-of/ How many times did I want to watch a directory waiting for a file to appear in it? Constant ls, for example, quickly got boring. A quick Perl script that would reload ls every 5 seconds… yeah it works but it take ...
http://ubuntuforums.org/showthread.php?t=35087 Howto: Backup and restore your system! <!-- / icon and title --><!-- message --> Hi, and welcome to the Heliode guide to successful backing-up and restoring of a Linux system! Most of you have probably used Windows bef ...
手动编译apache后需要方便的控制apache启动和关闭,可以注册apache为系统服务 步骤如下(我是在Ubuntu下(debian系列)): 1、cp /usr/local/apache2/binapachectl /etc/init.d/httpd 2、chkconfig -add httpd 3、sudo service httpd restart   第三步是重启apache的服务
http://www.yuanma.org/data/2008/0724/article_3112.htm 一、避免在循环条件中使用复杂表达式 在不做编译优化的情况下,在循环中,循环条件会被反复计算,如果不使用复杂表达式,而使循环条件值不变的话,程序将会运行的更快。例子:import java.util.Vector;class CEL {    void method (Vector vector) {        for (int i = 0; i < vector.size (); i++)  // Violation            ; // ...    }}更正 ...
最近项目上相关的配置   jetty 参数调整如下: JAVA_OPTIONS="$JAVA_OPTIONS -server -Xmx2048m -Xms2048m -XX:NewRatio=3 -Xnoclassgc -XX:MaxNewSize=256m -XX:MaxPermSize=500m -XX:MaxGCPauseMillis=5000 -Dfile.encoding=UTF-8"   系统句柄数调整如下: 文件/etc/security/limit.conf默认原来没有这个参数 * soft nofile 65536 * har ...
1、在/etc/rc.d/rc.local 文件中添加如下信息 ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up ----------作用: 设置IP和子网掩码 route add default gw 192.168.0.1 dev eth0 ----------作用:设置网关 2、修改/etc/resolv.conf,添加如下信息 nameserver 192.168.1.1 ----------作用:设置DNS 3、修改文件/etc/dhclient-script 把其中make_resolv_conf()一段给注释掉,在查找全文,注释所 ...
Crontab是linux下的系统调度,可以利用它来为我们的系统做些地下活动, 下面结合实际使用的例子:后台进程定时收取邮件来介绍 1、首先需要自己写个收邮件功能的后台进程 2、编译后打包,确保所有依赖的jar包都放到classpath下了 3、编写shell脚本 这里需要注意的是:因为Crontab运行时不会自动切换到后台进程部署的目录,所有我们需要手动的切换一下 #bash shell cd /PATH_TO_YOUR_APP java -cp oa.jar YOUR_MAIN_CLASS 4、定制触发时间 crontab -e */2 * * * * sh /path_to_your_ap ...
  1. install httpd  2. install tomcate 3. download mod_jk 4. config it     on centos u need install libtool and apxs   sudo yum install httpd-devel sudo yum install libtool   5.   cd PATH_TO_JK/jk/native ./buildconf.sh ./config --with-apxs=/usr/sbin/apxs make cd apache2. ...
Jetty7启动的一些问题: 下载了各distribution后, 把自己的war拷贝到webapp下,然后 运行java -jar start.jar -OPTIONS=Server,default  etc/jetty.xml 提示有错误: 无法初始化com.acme.SessionDump 在官网上找了说这个类是假设session中所有的值类型是string类型, 于是把jetty默认提供的override-web.xml中的给删掉就可以运行。  
在Fedora下如果给root用户或者别的用户设置远程访问错了,比如    root@' %' 多了一个空格在百分号前,这样会导致在下次登录mysql时提示不让localhost的用户登录, 此时我们可以通过下面的命名重置root账号的信息       mysql_setpermission
1:   Allowed memory size of 16777216 bytes exhausted    This is caused by the memory leak, which is set in php.ini, 16M is default size, so you can change it larger the option in php.ini file is :   step 1 : reset the size         memory_limit = 16M    step 2 : restart the apache         servic ...
场景:   在Fedora上安装了mysql后,卸载了又重新安装,使用mysqladmin -u root password 'new password' 更改密码,提示: mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this operation'" 解决方案:    1.修改MySQL的登录设置: # vi /etc/my.cnf 在[mysqld]的段中加上一句:skip-grant-tables 例如: [m ...
1、Postgresql启动   /etc/rc.d/init.d/postgresql   start 2、查看PostgreSql安装的目录    rpm -ql postgresql-server 3、进入数据库    psql -u mini-web -d mini-web  (mini-web为一个数据库) 4、配置可以远程访问   1、 vi /var/lib/pgsql/data/pg_hba.conf          --- host  all all 192.168.1.0/32 trust   2、 vi /var/lib/pgsql/data/postgresq ...
GRANT ALL ON *.* TO admin@'%' IDENTIFIED BY 'admin' WITH GRANT OPTION; admin@'%'  其中admin是用户名,“%”是允许任何ip的访问,密码为admin。
Global site tag (gtag.js) - Google Analytics