﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-路的尽头-文章分类-开发日记</title><link>http://www.cppblog.com/tangxinfa/category/6293.html</link><description>开发者之旅</description><language>zh-cn</language><lastBuildDate>Fri, 25 Jul 2008 18:25:00 GMT</lastBuildDate><pubDate>Fri, 25 Jul 2008 18:25:00 GMT</pubDate><ttl>60</ttl><item><title>运行openssl例子程序出现no OPENSSL_Applink错误的解决办法</title><link>http://www.cppblog.com/tangxinfa/articles/56914.html</link><dc:creator>唐新发</dc:creator><author>唐新发</author><pubDate>Wed, 23 Jul 2008 01:31:00 GMT</pubDate><guid>http://www.cppblog.com/tangxinfa/articles/56914.html</guid><wfw:comment>http://www.cppblog.com/tangxinfa/comments/56914.html</wfw:comment><comments>http://www.cppblog.com/tangxinfa/articles/56914.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/tangxinfa/comments/commentRss/56914.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/tangxinfa/services/trackbacks/56914.html</trackback:ping><description><![CDATA[最近下下来openssl-0.9.8h, 然后尝试编译运行相关例子, 结果运行时出错:<br>OPENSSL_Uplink(100E8010,07): no OPENSSL_Applink<br>解决办法是确保openssl的初始化函数(SSL_library_init, OpenSSL_add_ssl_algorithms, SSLeay_add_ssl_algorithms之一)要先于其它所有openssl函数进行调用.<br><br><img src ="http://www.cppblog.com/tangxinfa/aggbug/56914.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/tangxinfa/" target="_blank">唐新发</a> 2008-07-23 09:31 <a href="http://www.cppblog.com/tangxinfa/articles/56914.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在linux下踢出用户</title><link>http://www.cppblog.com/tangxinfa/articles/44383.html</link><dc:creator>唐新发</dc:creator><author>唐新发</author><pubDate>Thu, 13 Mar 2008 08:53:00 GMT</pubDate><guid>http://www.cppblog.com/tangxinfa/articles/44383.html</guid><wfw:comment>http://www.cppblog.com/tangxinfa/comments/44383.html</wfw:comment><comments>http://www.cppblog.com/tangxinfa/articles/44383.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/tangxinfa/comments/commentRss/44383.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/tangxinfa/services/trackbacks/44383.html</trackback:ping><description><![CDATA[远程登录linux系统后，因为网络不稳定意外断开了连接，但重新登录上去后，发现之前的登录还在，运行的程序也还在跑却无法再控制，因此需要踢出上次登录的tty，在文章<a href="http://www.cyberciti.biz/tips/howto-linux-kill-and-logout-users.html">Howto: Linux kill and logout users</a>找到了方法：<br>先用&#8220;who &#8221;命令查出对应的tty名称，再执行&#8220;skill -KILL tty名称&#8221;就成了。<br>不过不知道有没有办法重新以意外断开的tty登录，这样以前的程序还能够正常使用。<br> <img src ="http://www.cppblog.com/tangxinfa/aggbug/44383.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/tangxinfa/" target="_blank">唐新发</a> 2008-03-13 16:53 <a href="http://www.cppblog.com/tangxinfa/articles/44383.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>开源的网络管理系统SellaNMS的安装时的注意事项</title><link>http://www.cppblog.com/tangxinfa/articles/43893.html</link><dc:creator>唐新发</dc:creator><author>唐新发</author><pubDate>Fri, 07 Mar 2008 08:22:00 GMT</pubDate><guid>http://www.cppblog.com/tangxinfa/articles/43893.html</guid><wfw:comment>http://www.cppblog.com/tangxinfa/comments/43893.html</wfw:comment><comments>http://www.cppblog.com/tangxinfa/articles/43893.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/tangxinfa/comments/commentRss/43893.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/tangxinfa/services/trackbacks/43893.html</trackback:ping><description><![CDATA[　　本文针对的是SellaNMS-2.0.1。<br>　　根据说明该系统具体网络设备监视和发现功能，吸引我的是它说明中具备的获取网络拓扑功能。<br>　　1，mysql、apache、php该选什么版本？<br>　　安装SellaNMS-2.0.1无法与php5协同工作，只能选php4的，php4又导致配套的mysql及apache也不能安装过高版本（如：&gt;=apache2，&gt;=mysql4.3）。经过无数次各种版本的安装尝试，最终锁定在以下版本：<br>mysql-4.0.26，apache_1.3.41, php-4.1.0。<br>　　2, 运行过程中出现mysql.so中没有"compress"之类的错误.<br>&nbsp;&nbsp;&nbsp; 可以试着在libdbi-drivers-0.8.3-1的Makefile中的MYSQL_LIBS后添加 -lz<br>另外在configure libdbi-drivers-0.8.3-1记得指定 --with-mysql。<br>&nbsp;&nbsp;&nbsp; 3，make install到最后会安装数据库，这步通常可以顺利完成的，但前提是你给你的mysql root用户设置了密码，如果未设置则脚本总是提示你输入密码，你其实也可以修改config-sella_nms.sh，设置password的默认值为空，不过这会导致当询问密码时你要重复确认几次。<br>&nbsp;&nbsp;&nbsp; 4，config.php打开了debug时在web界面上显示了错误时：<br>　　如果是提示无法打开/tmp/中的临时文件，则要设置apache的User和Group，默认的nobody不行，设置成其它用户　。如果是提示tmp/里面的某个php文件不存在，则修改config.php将$config['cacheDir']的值从'tmp'改为'/tmp'，sella_nms需要设置为默认站点，即要在httpd.conf中指定DocumentRoot为"/usr/local/sella_nms/html"。<br>　　最后要说的是它的topology视图其实没什么看头，只是个表格一样的东西，列出了每个snmp结点连接到的其它结点，非snmp结点就不在此范围内了。<a href="javascript:loadFrame('body', '/tmp/sella_nms-topology.php');" class="mainlink"></a><br> <img src ="http://www.cppblog.com/tangxinfa/aggbug/43893.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/tangxinfa/" target="_blank">唐新发</a> 2008-03-07 16:22 <a href="http://www.cppblog.com/tangxinfa/articles/43893.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>nagios的调试</title><link>http://www.cppblog.com/tangxinfa/articles/43663.html</link><dc:creator>唐新发</dc:creator><author>唐新发</author><pubDate>Tue, 04 Mar 2008 03:31:00 GMT</pubDate><guid>http://www.cppblog.com/tangxinfa/articles/43663.html</guid><wfw:comment>http://www.cppblog.com/tangxinfa/comments/43663.html</wfw:comment><comments>http://www.cppblog.com/tangxinfa/articles/43663.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/tangxinfa/comments/commentRss/43663.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/tangxinfa/services/trackbacks/43663.html</trackback:ping><description><![CDATA[想用gdb单步调试nagios，结果程序总是在drop_privileges函数调用setgid时，gdb死掉了，这是通过root权限运行gdb才发生的，一时半会也搞不清导致这个问题的确切原因，不过应该是和gdb运行中因在drop_privileges函数调用中丧失了root相关权限有关。应该绕过root权限drop的那部分代码，这样gdb才不会挂，从代码看只能是以非root用户来调试nagios，直接以我的个人帐户调试nagios，结果出现警告：打不开nagios.log文件，从该文件的权限看，需得将我的帐户（txf）加入到nagios组：/usr/sbin/usermod -g nagios txf，不要忘了注销一下用户，再登录，现在可以以我的个人帐户用gdb调试nagios了。<br> <img src ="http://www.cppblog.com/tangxinfa/aggbug/43663.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/tangxinfa/" target="_blank">唐新发</a> 2008-03-04 11:31 <a href="http://www.cppblog.com/tangxinfa/articles/43663.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>