posts - 126,comments - 30,trackbacks - 2
05 2009 档案
[linux]gdb调试
摘要: ---------------------------------------------------快速入门:ps aux|grep programname '查看进程ID(pid)gdb programname attach pidb a.cpp:120 '设置断点c '让程序继续运行(gdb) shell '切换到shell界面#exit '重新回到gdb模式----------------...阅读全文
posted @ 2009-05-27 17:02 凌度 阅读(220) | 评论 (0) 编辑
[linux]ftp脚本
摘要: cent os 下的脚本是:lftp -c "open 192.168.22.1;user ftpusername ftppassword;put a_linux;put LinuxBuild.txt;exit"很多linux可以使用以下脚本:ftp -i -in <<!open 192.168.22.1user username password阅读全文
posted @ 2009-05-27 16:55 凌度 阅读(156) | 评论 (0) 编辑
asp.net集成域用户验证
摘要: 1. 在web.config中设置<authentication mode="Windows"/> 2. 在IIS-默认的Web站点-虚拟目录-属性-目录安全性-编辑中选择 "集成Windows验证",注意"匿名访问"一定不要选 3. 在asp.net中使用 User.Identity.Name 就可以得到域名和用户名.阅读全文
posted @ 2009-05-12 18:05 凌度 阅读(322) | 评论 (0) 编辑
[linux]无法加载so文件错误
摘要: 运行时出现如下提示:Failed to load ./plug/libss.so!解决方法:1、/etc/ selinux/config 此文件也下的也要 SELINUX=disabled2、chcon -t texrel_shlib_t /路径/路径/名字.so阅读全文
posted @ 2009-05-07 15:21 凌度 阅读(122) | 评论 (0) 编辑