??xml version="1.0" encoding="utf-8" standalone="yes"?>四川福彩快乐12走势图:BlogJava - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/<br> 有兴趣可以访问下我的生活博客?lt;a >qqmovie.qzone.com</a>zh-cnSat, 20 Oct 2018 10:31:38 GMTSat, 20 Oct 2018 10:31:38 GMT60livestatus在MAC下的编译 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2012/12/21/393282.html我爱佳娃我爱佳娃Thu, 20 Dec 2012 23:00:00 GMT//www.ot7t.com.cn/alwayscy/archive/2012/12/21/393282.html//www.ot7t.com.cn/alwayscy/comments/393282.html//www.ot7t.com.cn/alwayscy/archive/2012/12/21/393282.html#Feedback0//www.ot7t.com.cn/alwayscy/comments/commentRss/393282.html//www.ot7t.com.cn/alwayscy/services/trackbacks/393282.htmlcheck_mk-1.2.1i3.tar.gz

再解压其中的到livestatus目录:
livestatus.tar.gz

进入:livestatus/src

?make clean livestatus.o

会发现一堆错?根据编译NDO的选项:
ndoutils-1.4b7/src:
make clean ndomod-3x.o gcc -fno-common -g -O2 -DHAVE_CONFIG_H -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c io.o utils.o -bundle -flat_namespace -undefined suppress -lz

在最后的编译选项里添?
-flat_namespace -undefined suppress -lz

就可以编译出: livestatus.o



--------------------------
livecheck编不?报找不到n_short:
ip_icmp.h:92: error: expected specifier-qualifier-list before ‘n_short’

vi ./check_icmp.c 
把这个调整到INCLUDE序列的最后即?
#include "/usr/include/netinet/ip_icmp.h"


我爱佳娃 2012-12-21 07:00 发表评论
]]>
CAS多点登陆?amp;ldquo;非主?amp;rdquo;配置方式 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2012/12/01/392322.html我爱佳娃我爱佳娃Sat, 01 Dec 2012 02:43:00 GMT//www.ot7t.com.cn/alwayscy/archive/2012/12/01/392322.html//www.ot7t.com.cn/alwayscy/comments/392322.html//www.ot7t.com.cn/alwayscy/archive/2012/12/01/392322.html#Feedback3//www.ot7t.com.cn/alwayscy/comments/commentRss/392322.html//www.ot7t.com.cn/alwayscy/services/trackbacks/392322.html场景

想要用到的场景:用户访问WEB服务,WEB访问非WEB服务1,服?又再访问2?,合并计算后,把数据返回给WEB及前端用户。想让访问链上的所有服务都能得到认证和鉴权,认为本次请求确实是来自用户的。所以想到用CAS,让用户在一点登录,所有服务都到此处认证和鉴权?

  阅读全文

我爱佳娃 2012-12-01 10:43 发表评论
]]>
转的:果然?分钟配成TOMCAT使用SSL(https) - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2012/11/12/391235.html我爱佳娃我爱佳娃Mon, 12 Nov 2012 15:17:00 GMT//www.ot7t.com.cn/alwayscy/archive/2012/11/12/391235.html//www.ot7t.com.cn/alwayscy/comments/391235.html//www.ot7t.com.cn/alwayscy/archive/2012/11/12/391235.html#Feedback0//www.ot7t.com.cn/alwayscy/comments/commentRss/391235.html//www.ot7t.com.cn/alwayscy/services/trackbacks/391235.html四川福彩快乐12走势图:Setting Up SSL on Tomcat in 5 minutes (https://localhost:8443)
June 30, 2011 | By 

This tutorial will walk you through how to configure SSL (https://localhost:8443 access) on Tomcat in 5 minutes.

apache tomcat Setting Up SSL on Tomcat in 5 minutes (https://localhost:8443)

For this tutorial you will need:

  • Java SDK (used version 6 for this tutorial)
  • Tomcat (used version 7 for this tutorial)

The set up consists in 3 basic steps:

  1. Create a keystore file using Java
  2. Configure Tomcat to use the keystore
  3. Test it
  4. (Bonus ) Configure your app to work with SSL (access through https://localhost:8443/yourApp)

1 – Creating a Keystore file using Java

Fisrt, open the terminal on your computer and type:

Windows:

cd %JAVA_HOME%/bin 

Linux or Mac OS:

cd $JAVA_HOME/bin 

The $JAVA_HOME on Mac is located on “/System/Library/Frameworks/JavaVM.framework/Versions/{your java version}/Home/

You will change the current directory to the directory Java is installed on your computer. Inside the Java Home directory, cd to the bin folder. Inside the bin folder there is a file named keytool. This guy is responsible for generating the keystore file for us.

Next, type on the terminal:

keytool -genkey -alias tomcat -keyalg RSA 

When you type the command above, it will ask you some questions. First, it will ask you to create a password (My password is “password“):

loiane:bin loiane$ keytool -genkey -alias tomcat -keyalg RSA Enter keystore password:  password Re-enter new password: password What is your first and last name?   [Unknown]:  Loiane Groner What is the name of your organizational unit?   [Unknown]:  home What is the name of your organization?   [Unknown]:  home What is the name of your City or Locality?   [Unknown]:  Sao Paulo What is the name of your State or Province?   [Unknown]:  SP What is the two-letter country code for this unit?   [Unknown]:  BR Is CN=Loiane Groner, OU=home, O=home, L=Sao Paulo, ST=SP, C=BR correct?   [no]:  yes  Enter key password for 	(RETURN if same as keystore password):  password Re-enter new password: password 

It will create a .keystore file on your user home directory. On Windows, it will be on: C:\Documents and Settings\[username]; on Mac it will be on /Users/[username] and on Linux will be on /home/[username].

2 – Configuring Tomcat for using the keystore file – SSL config

Open your Tomcat installation directory and open the conf folder. Inside this folder, you will find the server.xml file. Open it.

Find the following declaration:

<!-- <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"     maxThreads="150" scheme="https" secure="true"     clientAuth="false" sslProtocol="TLS" /> --> 

Uncomment it and modify it to look like the following:

Connector SSLEnabled="true" acceptCount="100" clientAuth="false"     disableUploadTimeout="true" enableLookups="false" maxThreads="25"     port="8443" keystoreFile="/Users/loiane/.keystore" keystorePass="password"     protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"     secure="true" sslProtocol="TLS" /> 

Note we add the keystoreFilekeystorePass and changed the protocol declarations.

3 – Let’s test it!

Start tomcat service and try to access https://localhost:8443. You will see Tomcat’s local home page.

Note if you try to access the default 8080 port it will be working too: //localhost:8080

4 – BONUS - Configuring your app to work with SSL (access through https://localhost:8443/yourApp)

To force your web application to work with SSL, you simply need to add the following code to your web.xml file (before web-app tag ends):

<security-constraint> 	<web-resource-collection> 		<web-resource-name>securedapp</web-resource-name> 		<url-pattern>/*</url-pattern> 	</web-resource-collection> 	<user-data-constraint> 		<transport-guarantee>CONFIDENTIAL</transport-guarantee> 	</user-data-constraint> </security-constraint> 

The url pattern is set to /* so any page/resource from your application is secure (it can be only accessed with https). The transport-guarantee tag is set to CONFIDENTIAL to make sure your app will work on SSL.

If you want to turn off the SSL, you don’t need to delete the code above from web.xml, simply changeCONFIDENTIAL to NONE.

Reference//tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html (this tutorial is a little confusing, that is why I decided to write another one my own).

Happy Coding!



我爱佳娃 2012-11-12 23:17 发表评论
]]>
如何在extjs的PANEL里用d3.js来绘?/title><link>//www.ot7t.com.cn/alwayscy/archive/2012/09/27/388648.html</link><dc:creator>我爱佳娃</dc:creator><author>我爱佳娃</author><pubDate>Wed, 26 Sep 2012 23:38:00 GMT</pubDate><guid>//www.ot7t.com.cn/alwayscy/archive/2012/09/27/388648.html</guid><wfw:comment>//www.ot7t.com.cn/alwayscy/comments/388648.html</wfw:comment><comments>//www.ot7t.com.cn/alwayscy/archive/2012/09/27/388648.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/alwayscy/comments/commentRss/388648.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/alwayscy/services/trackbacks/388648.html</trackback:ping><description><![CDATA[EXTJS和D3都很强大,不解释了,把D3绘的图直接放到一个EXT的TAB?直接上图上代?<br /><img src="//www.ot7t.com.cn/images/blogjava_net/alwayscy/extjs_d3.jpg" border="0" alt="" width="1126" height="672" /><br /><br />代码中的D3例子来自:<br /><div class="yibqv">https://github.com/mbostock/d3/wiki/Force-Layout<br />可用于绘制拓扑结构图.<br /></div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />//www.CodeHighlighter.com/<br /><br />-->Ext.define('EB.view.content.SingleView', {<br />    extend : 'Ext.panel.Panel',<br />    alias : 'widget.singleview',<br /><br />    layout : 'fit',<br /><br />    title : 'single view',<br /><br />    initComponent : function() {<br />        <span style="color: #0000FF; ">this</span>.callParent(arguments);<br />    },<br /><br />    onRender : function() {<br />        var me = <span style="color: #0000FF; ">this</span>;<br /><br />        me.doc = Ext.getDoc();<br />        me.callParent(arguments);<br /><br />        me.drawMap();<br />    },<br /><br />    drawMap : function() {<br />        var width = 960, height = 500<br /><br />        var target = d3.select("#" + <span style="color: #0000FF; ">this</span>.id+"-body");<br /><br />        var svg = target.append("svg").attr("width", width).attr("height",<br />                height);<br /><br />        var force = d3.layout.force().gravity(.05).distance(100).charge(-100)<br />                .size([width, height]);<br /><br />                <span style="color: #008000; ">//</span><span style="color: #008000; "> get from: </span><span style="color: #008000; text-decoration: underline; ">https://github.com/mbostock/d3/wiki/Force-Layout</span><span style="color: #008000; "><br />                </span><span style="color: #008000; ">//</span><span style="color: #008000; "> example: force-directed images and labels</span><span style="color: #008000; "><br /></span>        d3.json("graph.json", function(json) {<br />            force.nodes(json.nodes).links(json.links).start();<br /><br />            var link = svg.selectAll(".link").data(json.links).enter()<br />                    .append("line").attr("class", "link");<br /><br />            var node = svg.selectAll(".node").data(json.nodes).enter()<br />                    .append("g").attr("class", "node").call(force.drag);<br /><br />            node.append("image").attr("xlink:href",<br />                    "https://github.com/favicon.ico").attr("x", -8).attr("y",<br />                    -8).attr("width", 16).attr("height", 16);<br /><br />            node.append("text").attr("dx", 12).attr("dy", ".35em").text(<br />                    function(d) {<br />                        <span style="color: #0000FF; ">return</span> d.name<br />                    });<br /><br />            force.on("tick", function() {<br />                        link.attr("x1", function(d) {<br />                                    <span style="color: #0000FF; ">return</span> d.source.x;<br />                                }).attr("y1", function(d) {<br />                                    <span style="color: #0000FF; ">return</span> d.source.y;<br />                                }).attr("x2", function(d) {<br />                                    <span style="color: #0000FF; ">return</span> d.target.x;<br />                                }).attr("y2", function(d) {<br />                                    <span style="color: #0000FF; ">return</span> d.target.y;<br />                                });<br /><br />                        node.attr("transform", function(d) {<br />                                    <span style="color: #0000FF; ">return</span> "translate(" + d.x + "," + d.y + ")";<br />                                });<br />                    });<br />        });<br />    }<br /><br />});</div><img src ="//www.ot7t.com.cn/alwayscy/aggbug/388648.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/alwayscy/" target="_blank">我爱佳娃</a> 2012-09-27 07:38 <a href="//www.ot7t.com.cn/alwayscy/archive/2012/09/27/388648.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MAC 10.8 安装 MYSQL - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2012/08/05/384812.html我爱佳娃我爱佳娃Sun, 05 Aug 2012 08:43:00 GMT//www.ot7t.com.cn/alwayscy/archive/2012/08/05/384812.html//www.ot7t.com.cn/alwayscy/comments/384812.html//www.ot7t.com.cn/alwayscy/archive/2012/08/05/384812.html#Feedback0//www.ot7t.com.cn/alwayscy/comments/commentRss/384812.html//www.ot7t.com.cn/alwayscy/services/trackbacks/384812.html
//www.mysql.com/downloads/

下来后先?mysql-5.5.27-osx10.6-x86_64.pkg
它是装到/usr/local/mysql,到此目录运行?
./scripts/mysql_install_db --user mysql

通过这个启动:
./bin/mysqld_safe

排错:
看下上面的LOG提示.
Can't find file: './mysql/host.frm' :一般是没权?把DATA目录删除,再用上面命令建一?/span>
unknow option:?etc/my.cnf删除?里面有新版本不认识的上一版本遗留配置
说mysql.sock找不?这个版本是在/tmp/目录下哦!

再把剩下两个包装?就可以通过配置面板启动?
MySQL.prefPane
MySQLStartupItem.pkg

下次升级可能要给?usr/local/mysql/data目录的权?/span>


我爱佳娃 2012-08-05 16:43 发表评论
]]>
一目了然PERL编码,是转?/title><link>//www.ot7t.com.cn/alwayscy/archive/2011/10/09/360236.html</link><dc:creator>我爱佳娃</dc:creator><author>我爱佳娃</author><pubDate>Sun, 09 Oct 2011 00:04:00 GMT</pubDate><guid>//www.ot7t.com.cn/alwayscy/archive/2011/10/09/360236.html</guid><wfw:comment>//www.ot7t.com.cn/alwayscy/comments/360236.html</wfw:comment><comments>//www.ot7t.com.cn/alwayscy/archive/2011/10/09/360236.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.ot7t.com.cn/alwayscy/comments/commentRss/360236.html</wfw:commentRss><trackback:ping>//www.ot7t.com.cn/alwayscy/services/trackbacks/360236.html</trackback:ping><description><![CDATA[     摘要: 非常浅显易懂的PERL编码说明. <br>一目了然PERL编码,注意是转?nbsp; <a href='//www.ot7t.com.cn/alwayscy/archive/2011/10/09/360236.html'>阅读全文</a><img src ="//www.ot7t.com.cn/alwayscy/aggbug/360236.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.ot7t.com.cn/alwayscy/" target="_blank">我爱佳娃</a> 2011-10-09 08:04 <a href="//www.ot7t.com.cn/alwayscy/archive/2011/10/09/360236.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>perl不用export,自动加入自己的搜索和动态链接库环境 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2011/10/03/359970.html我爱佳娃我爱佳娃Mon, 03 Oct 2011 13:37:00 GMT//www.ot7t.com.cn/alwayscy/archive/2011/10/03/359970.html//www.ot7t.com.cn/alwayscy/comments/359970.html//www.ot7t.com.cn/alwayscy/archive/2011/10/03/359970.html#Feedback0//www.ot7t.com.cn/alwayscy/comments/commentRss/359970.html//www.ot7t.com.cn/alwayscy/services/trackbacks/359970.html下面以MAC为例,如果是LINUX需要把DYLD发为LD


把下面代码加到代码开?它就可以自启动了,不需要再EXPORT或?I


BEGIN {

        #需要加到LOADPATH的路?/font>

my $need = '/usr/local/nagios/pkg/ebase/';


push @INC, $need;

if ( $^O !~ /MSWin32/ ) {

my $ld = $ENV{DYLD_LIBRARY_PATH};

if ( !$ld ) {

$ENV{DYLD_LIBRARY_PATH} = $need;

}

elsif ( $ld !~ m#(^|:)\Q$need\E(:|$)# ) {

$ENV{DYLD_LIBRARY_PATH} .= ':' . $need;

}

else {

$need = "";

}

if ($need) {

exec 'env', $^X, $0, @ARGV;

}

}

}

@import url(//www.ot7t.com.cn/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

我爱佳娃 2011-10-03 21:37 发表评论
]]>
4.8以上SSHD配置特定用户只能在特定目录SFTP,不能进行其它命令操作 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2011/10/03/359940.html我爱佳娃我爱佳娃Sun, 02 Oct 2011 19:15:00 GMT//www.ot7t.com.cn/alwayscy/archive/2011/10/03/359940.html//www.ot7t.com.cn/alwayscy/comments/359940.html//www.ot7t.com.cn/alwayscy/archive/2011/10/03/359940.html#Feedback0//www.ot7t.com.cn/alwayscy/comments/commentRss/359940.html//www.ot7t.com.cn/alwayscy/services/trackbacks/359940.html限制?span style="font: 12.0px 'Heiti SC Light'">?/span>在自己目?/span>?span style="font: 12.0px 'Heiti SC Light'">?/span>文件:

建立nagiosdnld

指向软链?/usr/local/nagios/dnld -> /Users/nagiosdnld/dnld

编辑/etc/sshd_config


Match User nagiosdnld

        X11Forwarding no

        AllowTcpForwarding no

        ForceCommand internal-sftp

        ChrootDirectory /Users/nagiosdnld


?span style="font: 12.0px 'Heiti SC Light'">?/span>下服?/span>:

launchctl stop org.openbsd.ssh-agent

launchctl start org.openbsd.ssh-agent


@import url(//www.ot7t.com.cn/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

我爱佳娃 2011-10-03 03:15 发表评论
]]>
转:iostat 输出解析 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2011/09/17/358860.html我爱佳娃我爱佳娃Sat, 17 Sep 2011 03:37:00 GMT//www.ot7t.com.cn/alwayscy/archive/2011/09/17/358860.html//www.ot7t.com.cn/alwayscy/comments/358860.html//www.ot7t.com.cn/alwayscy/archive/2011/09/17/358860.html#Feedback0//www.ot7t.com.cn/alwayscy/comments/commentRss/358860.html//www.ot7t.com.cn/alwayscy/services/trackbacks/358860.html

1. /proc/partitions

对于kernel 2.4, iostat 的数据的主要来源?/proc/partitions,而对于kernel 2.6, 数据主要来自/proc/diskstats或?sys/block/[block-device-name]/stat?

先看?/proc/partitions 中有些什么?

# cat /proc/partitions
major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq
  阅读全文

我爱佳娃 2011-09-17 11:37 发表评论
]]>
[转] Stl 删除元素注意事项 - 四川福利彩票快乐12快乐12开奖直播快乐12开奖辽宁福彩快乐12快乐彩12选5走势图//www.ot7t.com.cn/alwayscy/archive/2011/07/18/354544.html我爱佳娃我爱佳娃Mon, 18 Jul 2011 09:02:00 GMT//www.ot7t.com.cn/alwayscy/archive/2011/07/18/354544.html//www.ot7t.com.cn/alwayscy/comments/354544.html//www.ot7t.com.cn/alwayscy/archive/2011/07/18/354544.html#Feedback0//www.ot7t.com.cn/alwayscy/comments/commentRss/354544.html//www.ot7t.com.cn/alwayscy/services/trackbacks/354544.html阅读全文

]]>