blogjava-凯发k8网页登录

blogjava-凯发k8网页登录http://www.blogjava.net/ivanwan/自由的力量,自由的生活。zh-cnsat, 08 apr 2023 20:42:38 gmtsat, 08 apr 2023 20:42:38 gmt60centos rabbitmqhttp://www.blogjava.net/ivanwan/archive/2015/07/03/426029.htmlivaneeoivaneeofri, 03 jul 2015 12:25:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/07/03/426029.htmlhttp://www.blogjava.net/ivanwan/comments/426029.htmlhttp://www.blogjava.net/ivanwan/archive/2015/07/03/426029.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/426029.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/426029.htmlcurl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

rabbitmq.config 

[{rabbit, [{cluster_partition_handling, autoheal},{loopback_users, []}]}].



ivaneeo 2015-07-03 20:25
]]>
centos startup scripthttp://www.blogjava.net/ivanwan/archive/2015/07/03/426026.htmlivaneeoivaneeofri, 03 jul 2015 12:06:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/07/03/426026.htmlhttp://www.blogjava.net/ivanwan/comments/426026.htmlhttp://www.blogjava.net/ivanwan/archive/2015/07/03/426026.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/426026.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/426026.html#!/bin/sh

#

# startup script for ovirt-agent

#

# chkconfig: 2345 85 20

# description: ovirt-agent

# processname: ovirt-agent

# pidfile: /var/run/tomcat.pid # config:# source function library.

. /etc/rc.d/init.d/functions

# source networking configuration.

. /etc/sysconfig/network

# check that networking is up.

export ovirt_agent_home=/opt/ovirt-agent

[ -f $ovirt_agent_home/bin/startserver.sh ] ||?exit 0 [ -f $ovirt_agent_home/bin/stopserver.sh ] ||?exit 0

# see how we were called.

case "$1" in

start)

# start daemon.

        echo ?"starting ovirt-agent: "

        $ovirt_agent_home/bin/startserver.sh $ovirt_agent_home/conf/ovirt-agent.xml

        touch /var/lock/subsys/ovirt-agent

;;

stop)

# stop daemons.

        echo ?"shutting down ovirt-agent: "

        $ovirt_agent_home/bin/stopserver.sh

        rm -f /var/lock/subsys/ovirt-agent

;;

restart)

        $0 stop

        $0 start

;;

status)

status ovirt-agent

;;

*)

echo "usage: $0 {start|stop|restart|status}"

exit 1

esac

exit 0



ivaneeo 2015-07-03 20:06
]]>
ningbo installhttp://www.blogjava.net/ivanwan/archive/2015/06/13/425667.htmlivaneeoivaneeosat, 13 jun 2015 07:09:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/06/13/425667.htmlhttp://www.blogjava.net/ivanwan/comments/425667.htmlhttp://www.blogjava.net/ivanwan/archive/2015/06/13/425667.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/425667.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/425667.htmldocker run -d --name="srdesktop1" -p 80:80 -p 8888:8888 -p 8000:8000 -p 8009:8009 -p 8081:8081 -p 3306:3306 -p 19:22 -v /opt/html:/var/www -v /opt/ssdb-master:/opt/ssdb-master -v /opt/apache-tomcat-7.0.53:/opt/apache-tomcat-7.0.53 -v /opt/mule-standalone-3.5.0:/opt/mule-standalone-3.5.0 -v /opt/mysql/data:/var/lib/mysql --privileged=true srdesktop/ubuntu /bin/bash  -exec 'echo -e "192.168.1.93 ovirt-manage\n192.168.1.243 localhost" >> /etc/hosts && service mysql start  && /etc/init.d/guaca start && rm /opt/ssdb-master/var/ssdb.pid && /opt/ssdb-master/ssdb-server  -d /opt/ssdb-master/ssdb.conf && export java_home=/opt/jdk1.7.0_51 && export path=$java_home/bin:$path && /opt/apache-tomcat-7.0.53/bin/startup.sh && service apache2 start && /opt/mule-standalone-3.5.0/bin/mule'


pptpsetup --create myvpn --server --username vpn --password mincloud --encrypt --start


docker run -d --name="rabbitmq_master" -p 200:22 -p 25672:25672 -p 15672:15672 -p 5672:5672 -p 4369:4369 -p 10051:10050 rabbitmq/ubuntu /bin/bash -exec 'echo -e "172.20.20.10 rabbitmq-master\n127.0.0.1 localhost" > /etc/hosts && /etc/init.d/rabbitmq-server start && /usr/sbin/sshd -d'


# generated by ovirt-engine installer
#filtering rules
*filter
:input accept [0:0]
:forward accept [0:0]
:output accept [0:0]
-a input -i lo -j accept
-a input -p icmp -m icmp --icmp-type any -j accept
-a input -m state --state related,established -j accept
#drop all rule
commit


ivaneeo 2015-06-13 15:09
]]>
从java转ios第一个项目总结http://www.blogjava.net/ivanwan/archive/2015/05/02/424812.htmlivaneeoivaneeofri, 01 may 2015 17:29:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/05/02/424812.htmlhttp://www.blogjava.net/ivanwan/comments/424812.htmlhttp://www.blogjava.net/ivanwan/archive/2015/05/02/424812.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/424812.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/424812.htmlhttp://www.cocoachina.com/ios/20150417/11595.html

ivaneeo 2015-05-02 01:29
]]>
greenvpnhttp://www.blogjava.net/ivanwan/archive/2015/04/29/424768.htmlivaneeoivaneeowed, 29 apr 2015 11:12:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/04/29/424768.htmlhttp://www.blogjava.net/ivanwan/comments/424768.htmlhttp://www.blogjava.net/ivanwan/archive/2015/04/29/424768.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/424768.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/424768.htmlhttps://www.igreenjsq.info/user-xianlu.html

ivaneeo 2015-04-29 19:12
]]>
hadoop生态圈http://www.blogjava.net/ivanwan/archive/2015/04/25/424664.htmlivaneeoivaneeosat, 25 apr 2015 06:08:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/04/25/424664.htmlhttp://www.blogjava.net/ivanwan/comments/424664.htmlhttp://www.blogjava.net/ivanwan/archive/2015/04/25/424664.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/424664.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/424664.htmlhttp://www.csdn.net/article/2014-01-02/2817984-13-tools-let-hadoop-fly
好用的数据工具
http://blog.itpub.net/7816530/viewspace-1119924/


ivaneeo 2015-04-25 14:08
]]>
windows mtu设置http://www.blogjava.net/ivanwan/archive/2015/04/25/424663.htmlivaneeoivaneeosat, 25 apr 2015 05:01:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/04/25/424663.htmlhttp://www.blogjava.net/ivanwan/comments/424663.htmlhttp://www.blogjava.net/ivanwan/archive/2015/04/25/424663.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/424663.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/424663.html
netsh interface ipv4 set subinterface "本地连接" mtu=1480 store=persistent


ivaneeo 2015-04-25 13:01
]]>
ovirt jdk certhttp://www.blogjava.net/ivanwan/archive/2015/04/21/424574.htmlivaneeoivaneeotue, 21 apr 2015 09:23:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/04/21/424574.htmlhttp://www.blogjava.net/ivanwan/comments/424574.htmlhttp://www.blogjava.net/ivanwan/archive/2015/04/21/424574.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/424574.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/424574.htmlhttp://www.ovirt.org/java-sdk

ivaneeo 2015-04-21 17:23
]]>
mesos调度框架http://www.blogjava.net/ivanwan/archive/2015/04/15/424426.htmlivaneeoivaneeotue, 14 apr 2015 20:49:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/04/15/424426.htmlhttp://www.blogjava.net/ivanwan/comments/424426.htmlhttp://www.blogjava.net/ivanwan/archive/2015/04/15/424426.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/424426.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/424426.html
http://m.blog.csdn.net/blog/ebay/43529401


ivaneeo 2015-04-15 04:49
]]>
cpu time to cpu_utilhttp://www.blogjava.net/ivanwan/archive/2015/04/06/424153.htmlivaneeoivaneeomon, 06 apr 2015 07:44:00 gmthttp://www.blogjava.net/ivanwan/archive/2015/04/06/424153.htmlhttp://www.blogjava.net/ivanwan/comments/424153.htmlhttp://www.blogjava.net/ivanwan/archive/2015/04/06/424153.html#feedback0http://www.blogjava.net/ivanwan/comments/commentrss/424153.htmlhttp://www.blogjava.net/ivanwan/services/trackbacks/424153.html

so now you have:

  • the elapsed wall clock time (this period's time, minus last period's time) call this x
  • the elapsed process cpu time (this period's time, minus last period's time) call this y
  • the number of cpus. call this c

the percent utilization will be y / (x x c) * 100

import java.lang.management.*;
import java.util.concurrent.*;

osx = managementfactory.getoperatingsystemmxbean();
cores = osx.getavailableprocessors(); // factorial to keep the process busy so we can see some actual activity
factorial = { n -> int fact = 1; int i = 1; while(i <= n) { i ; fact *= i; } return fact; }
long elapsedtime = -1, starttime = -1; long elapsedcpu = -1, startcpu = -1;;
for(i in 0..20) { starttime = system.nanotime(); startcpu = osx.getprocesscputime(); countdownlatch latch = new countdownlatch(cores); for(x in 1..cores) { thread.startdaemon() { factorial(1000000); latch.countdown(); } } latch.await(); elapsedtime = system.nanotime()-starttime; elapsedcpu = osx.getprocesscputime()-startcpu; percusage = (elapsedcpu / (elapsedtime* cores)) *100; println "percent usage:$percusage %"; }


ivaneeo 2015-04-06 15:44
]]>
网站地图