上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页
摘要: 最近在开发一个项目的时候,需要用到一个包(libpcap),利用这个包可以进行网络流的底层解析,可是要使用这个包进行网络嗅探的时候,需要使用root权限,经常使用sudo来运行很麻烦,最后为了方便项目的调试,于是就将自己的当前用户提升到root权限。 提升的方法如下:在shell里面输入 sudo gedit /etc/passwd 将里面的当前用户的ID值进行修改。譬如我的当前用户是chenjieb则找到了 chenjieb:x:1000:1000:Administrator,,,:/home.chenjieb:/bin/bash 将两个1000改成0即可。即最后改完的结果为: c... 阅读全文
posted @ 2013-03-31 09:44 七月逆流 阅读(3824) 评论(1) 推荐(0)
摘要: $sudo apt-get install likewise-open安装好以后进入ubuntu 软件中心.查找likewise.下面会出现likewise-open-gui 的附件包.安装,在win键搜索likewise打开软件即可图形化加入域.需要域控管理员账户参考:http://blog.163.com/ywz_306/blog/static/132577112011170533149/ 阅读全文
posted @ 2013-03-31 00:30 七月逆流 阅读(1287) 评论(3) 推荐(0)
摘要: Want to enable root logon in Ubuntu 12.04? Well, even though it’s not recommended, it’s still possible to login with the root or administrator account, and this brief tutorial is going to show you how. The reason it’s not recommended is simple; because people make mistakes. Making the smallest mista 阅读全文
posted @ 2013-03-29 19:05 七月逆流 阅读(607) 评论(0) 推荐(0)
摘要: 1.查看IP: ifconfig.(如果找不到,使用:/sbin/ifconfig) 阅读全文
posted @ 2013-03-28 17:26 七月逆流 阅读(178) 评论(0) 推荐(0)
摘要: Way1:Alternative way to solve same problem - login to WebLogic Web Console and press Undo Active Changes button, this will remove all dirty locks from previously failed deployment.2.Shutdown Weblogic instances (including administration application)Delete the lock files:$WL_HOME/XXXDomain/edit.lok$WL 阅读全文
posted @ 2013-03-20 16:41 七月逆流 阅读(876) 评论(0) 推荐(0)
摘要: 1.快速定位到文件头,尾:[[ 文件头]] 文件尾 [[^ 开头第一个字符 ]]$ 结尾最后一个字符2.搜索/pattern 从光标开始处向文件尾搜索pattern?pattern 从光标开始处向文件首搜索patternn 在同一方向重复上一次搜索命令N 在反方向上重复上一次搜索命令% 查找配对的括号:s/p1/p2/g 将当前行中所有p1均用p2替代,若要每个替换都向用户询问则应该用gc选项:n1,n2s/p1/p2/g 将第n1至n2行中所有p1均用p2替... 阅读全文
posted @ 2013-03-18 14:39 七月逆流 阅读(155) 评论(0) 推荐(0)
摘要: ok, if you are getting this error, just force it with this command.lets say for example, i am trying to detele a directory called install and in this directory, i have some file, so to remove the whole thing just run this command:rm -rf install 阅读全文
posted @ 2013-01-29 18:20 七月逆流 阅读(1482) 评论(0) 推荐(0)
摘要: 当通过命令重启控制台,如果连续多次stopadmin,多次startAdmin,会造成admin lock .这时候,应该采取如下措施 确保重启控制台.1.通过命令 startadmin 尝试启动控制台.2.调用命令 tailAdminServer 查看当前输出信息如果依旧启动失败,尝试使用 :cd /usr01/app/oracle/product/wls12110/domains/ConsumerDomain/bin./startWebLogic.sh通过 domain来启动 ;如果依旧失败,最好先删除admin lock ,然后清除 log输出:删除: cd /usr01/app/ora 阅读全文
posted @ 2013-01-29 12:32 七月逆流 阅读(834) 评论(0) 推荐(0)
摘要: Problem:If you have configured your Oracle WebLogic 11g server to perform LDAP authenticaion, when starting up the WebLogic 11g AdminServer, you may receive the following error:<Dec 3, 2010 8:58:34 AM EST> <Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusiv 阅读全文
posted @ 2013-01-28 16:04 七月逆流 阅读(3953) 评论(0) 推荐(0)
摘要: Solution:1. Shutdown the AdminServer2. Do a "ps -ef | grep oracle | grep -v grep" and observe and see if you have any lingering processes3. If so, then do a "kill <processid>"4. If that doesn't kill the process gracefully, then do a "kill -9 <processid>" 阅读全文
posted @ 2013-01-11 11:48 七月逆流 阅读(208) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页