`
itace
  • 浏览: 173023 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
       ubuntu右键打开终端:   sudo apt-get install nautilus-open-terminal    
  1.修改startup.sh,在开始位置添加   export JAVA_HOME=/home/chipmunk/app/jdk1.7.0_80   2.修改/etc/rc.local ,在exit前面添加(root身份修改,其他user,cp出来,改完再cp回去覆盖)     # autostart tomcat su - chipmunk -c '/home/chipmunk/app/apache-tomcat-8.5.30/bin/startup.sh'   3.重启后,jps查看     <audio controls="control ...
从下面的命令注释内容可以看出,/etc/init.d/rc.local里面会判断是否存在/etc/rc.local,如果存在,就执行这个文件     /etc/rc.local的内容如下: cat /etc/rc.local      #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # ...
  1指标准输出;2指错误输出,所以写成这样:command 1>output 2>error & ,正常的输出在output文件里,错误的输出在error文件里,command >output 2>error & (1可以省略) 忽略错误输出:command 1>output 2>/dev/null &  忽略标准输出:command 1>/dev/null 2>error & 忽略全部输出:command 1>/dev/null 2>/dev/null & 忽略全部输出:comm ...

redis

  lsof -i:6379 netstat -ano |grep 6379   开启,内存配置在conf,maxmemory redis-server ../etc/redis.conf    关闭,无密码 redis-cli shutdown   关闭,有密码 ./redis-cli -h 127.0.0.1 -p 6379 -a 123456      >>>>>shutdown   外网访问 # bind 127.0.0.1 protected-mode no   /etc/sysconfig/iptables 添加 ...
  sudo gedit /etc/profile   # add jdk1.7 export JAVA_HOME=/home/chipmunk/app/jdk1.7.0_80 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib export PATH=$JAVA_HOME/bin:$PATH    

mysqldao

  public Connection getConnection() throws SQLException { try { Class.forName(PropertiesUtil.getString("jdbc.driver")); } catch (ClassNotFoundException e) { e.printStackTrace(); } String url = PropertiesUtil.getString("jdbc.url"); String user = PropertiesU ...

IP获取地址

    博客分类:
  • js
  • ip
  <script type="text/javascript" src="http://ip.chinaz.com/getip.aspx"></script>     http://ip.taobao.com/service/getIpInfo.php?ip=   function locateInfo(){ var url_locate = 'http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js'; //var url_l ...
    BufferedImage biGray = new BufferedImage(512,512,BufferedImage.TYPE_BYTE_GRAY); BufferedImage biRGB = new BufferedImage(biGray.getWidth(), biGray.getHeight(),BufferedImage.TYPE_INT_RGB); //颜色变了 // ColorConvertOp cco = new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_LINEAR_RGB ...
  jobjectArray vectorToArray(JNIEnv * env, vector<vector<double>> vec){ jobjectArray objArray; jclass doubleArray = env->FindClass("[D"); if (doubleArray == NULL) return NULL; int size = vec.size(); objArray = env->NewObjectArray(size, doubleArray, NULL); if ...
  http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev30downloads-1525485.html   http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html   在下载页面,连续点击下面的Previous Version寻找 <audio controls="controls" style="display: no ...

oracle10g下载地址

  转自:http://blog.itpub.net/27006877/viewspace-739059/   Oracle Database 10g Release 2 (10.2.0.1.0) Enterprise/Standard Edition for Linux x86 http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux32.ziphttp://download.oracle.com/otn/linux/oracle10g/10201/10201_client_linux32. ...
  public static <T> T transformObject(Object obj,Class<T> c){ if (obj!=null&&obj.getClass().getCanonicalName().equals(c.getCanonicalName())) { System.out.println(c.getCanonicalName()); return (T)obj; }else { return null; } }   <audio controls="c ...
  /** * 进入全屏 */ function enterFullScreen() { document.getElementById('abc').style.height = screenHeight+"px"; var d= document.getElementById('abc'); if (d.requestFullscreen) { d.requestFullScreen(); } else if (d.webkitRequestFullScreen) { d.webkitRequestFullScreen(); } ...

log4j.properties失效

 jar包引入,不要引入带example的jar,会覆盖自定义的log4j.properties,比如quartz-examples-2.1.7.jar <audio controls="controls" style="display: none;"></audio>
Global site tag (gtag.js) - Google Analytics