neutron-server启动过程分析1. /etc/init.d/neutron-serverDAEMON=/usr/bin/neutron-serverDAEMON_ARGS="--log-file=$LOGFILE"DAEMON_DIR=/var/run...case $1 in st...
分类:
其他好文 时间:
2014-07-16 19:22:23
阅读次数:
346
一、修改MAC地址方法linux环境下:需要用 #ifconfig eth0 down 先把网卡禁用 再用ifconfig eth0 hw ether 1234567890ab 这样就可以改成功了要想永久改就这样在/etc/rc.d/rc.local里加上这三句(也可以在/etc/init.d/ne...
分类:
系统相关 时间:
2014-07-16 19:15:49
阅读次数:
302
之前做JavaEE的工程都是用的Myeclipse,没有用Eclipse 做过比较大的东西。 刚刚试了把别人的项目导入到自己的Eclipse里,吓尿,一百多个error。但大部分都是:HttpServlet cannot be resolved to a type之类的,要不就是JSP不能被r...
分类:
编程语言 时间:
2014-07-15 23:15:30
阅读次数:
332
ngx_event_core_module模块的ngx_event_process_init方法对事件模块做了一些初始化。其中包括将“请求连接”这样一个读事件对应的处理方法(handler)设置为ngx_event_accept函数,并将此事件添加到epoll模块中。当有新连接事件发生时,ngx_event_accept就会被调用。大致流程是这样:
worker进程在ngx_worker...
分类:
其他好文 时间:
2014-07-15 12:25:28
阅读次数:
299
服务端:[root@localhosttmp]#rpm-qa|grepnfsnfs-utils-lib-1.0.8-7.6.el5nfs-utils-1.0.9-44.el5//提供文件系统system-config-nfs-1.3.23-1.el5[root@localhosttmp]#rpm-qa|grepportmapportmap-4.0-65.2.2.1//提供rpc协议[root@localhosttmp]#/etc/init.d/nfsrestart[root@loc..
分类:
Web程序 时间:
2014-07-15 11:37:13
阅读次数:
215
[root@localhostLiveOS]#mountsquashfs.img/mnt/squashfs/mount:/mnt/sdb1/iso/LiveOS/squashfs.imgisnotablockdevice(maybetry`-oloop‘?)[root@localhostLiveOS]#mount-oloop/mnt/squashfs/mount:can‘tfind/mnt/squashfs/in/etc/fstabor/etc/mtab[root@localhostLiveOS]#mount..
分类:
其他好文 时间:
2014-07-15 10:53:58
阅读次数:
870
1.当执行此命令的时候ntpdate us.pool.ntp.org 出现一下错误提示name server cannot be used: Temporary failure in name resolution2.解决办法(添加DNS服务器)vi /etc/resolv.conf添加: name...
分类:
其他好文 时间:
2014-07-14 20:12:04
阅读次数:
272
Ext.onReady(function(){Ext.QuickTips.init();Ext.form.Field.prototype.msgTarget="side";varform=newExt.form.FormPanel({title:"Ext.form.NumberField例子",la...
分类:
其他好文 时间:
2014-07-14 18:59:14
阅读次数:
555
总体上的顺序——————。
其中,每个类别内部都是按序执行的,而必须放在相应之后并且按照先后来执行。
另外,表示的优先级:取0和正整数。其中0优先级最高,这些都会在容器启动的时候初始化(init()),当小于0或没有指定的时候则在调用该servlet时初始化。...
分类:
Web程序 时间:
2014-07-14 18:48:19
阅读次数:
210
1.看源码必须搞懂Android的数据结构。在init源代码中双向链表listnode使用很多,它只有prev和next两个指针,没有任何数据成员。这个和linux内核的list_head如出一辙,由此可见安卓深受linux内核的影响的。本来来分析一下这个listnode数据结构。
这里需要考虑的一个问题是,链表操作都是通过listnode进行的,但是那不过是个连接件,如果我们手上有个宿主结构,...
分类:
移动开发 时间:
2014-07-14 18:13:24
阅读次数:
435