上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 82 下一页
摘要: [root@linux-a ~]# rpm -qa |grep yumyum-metadata-parser-1.0-8.fc6yum-3.0.1-5.el5yum-rhn-plugin-0.4.3-1.el5yum-updatesd-3.0.1-5.el5配置yum更新源创建/etc/yum.repos.d/CentOS-Base.repo文件,定义yum更新源,这里使用的是上海交大的CentOS更新源[root@linux-a ~]# vi /etc/yum.repos.d/CentOS-Base.repo[base]name=CentOS-5-Base#mirrorlist=http:/ 阅读全文
posted @ 2011-01-13 08:41 greencolor 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 在/etc/yum.repos.d目录里建立一个文件,文件名任意,扩展名一定是repo,文件内容如下:[base]name=base RPM Repository for RHEL5baseurl=file:///media/CDROM/Server/enabled=1gpgcheck=0修改server上的/usr/lib/python2.4/site-packages/yum/yumRepo.py文件,这个文件的411行原来的内容是:remote = url + '/' + relative修改为:remote = "file:///media/CDROM/Server/" + '/' + 阅读全文
posted @ 2011-01-11 22:01 greencolor 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Information that all the simulation programs need:1. Cartesian coordinates for each atom in the system. 2. "Topology": connectivity, atom names, atom types, residue names, and charges.This information comes from the database, which is found in the amber10/dat/leap/prep directory.3. Force field: Para 阅读全文
posted @ 2011-01-10 22:58 greencolor 阅读(174) 评论(0) 推荐(0) 编辑
摘要: yum install gcc gcc-c++ kernel-devel 阅读全文
posted @ 2010-12-19 16:02 greencolor 阅读(5949) 评论(0) 推荐(0) 编辑
摘要: % socket 192.168.238.126 80 couldn't open socket: host is unreachable % socket 127.0.0.1 2343 couldn't open socket: connection refused % socket -server 127.0.0.1 2343 sock7% socket -server localhost 2343sock8 阅读全文
posted @ 2010-12-09 00:02 greencolor 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 1.socket 服务端开启格式:socket –server command ?options? port-server :表明开启的是服务器端port:端口command:当有客户端来连接的时候,执行这个过程,这个过程有三个参数channel:给新客户端的通道address:提供给客户端连接的 ip 地址port:端口2.客户端连接服务器端格式:socket ?options? host porthost port :客户端连接的服务器 ip和端口3.fileevent定义了一个句柄,满足条件时执行格式:fileevent channelId readable? script?fileev 阅读全文
posted @ 2010-12-08 23:18 greencolor 阅读(1922) 评论(0) 推荐(0) 编辑
摘要: 面向连接的Socket实例   代码实例中的服务器通过socket连接向客户端发送字符串"Hello, you are connected!"。只要在服务器上运行该服务器软件,在客户端运行客户软件,客户端就会收到该字符串。   该服务器软件代码如下: #include stdio.h #include stdlib.h #include errno.h #include string.h #include sys/types.h #include netinet/in.h #include sys/socket.h #include sys/wait.h #de 阅读全文
posted @ 2010-12-08 22:16 greencolor 阅读(378) 评论(0) 推荐(0) 编辑
摘要: /etc/init.d$ ./xinetd restart* Stopping internet superserver xinetd [ OK ] * Starting internet superserver xinetd [ OK ] 阅读全文
posted @ 2010-12-06 13:53 greencolor 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Tcl supports the following mathematical functions in expressions:abs acos asin atanatan2 bool ceil coscosh double entier expfloor fmod hypot intisqrt log log10 maxmin pow rand roundsin sinh sqrt srandtan tanh wide * switch string { pattern1 body1 ?pattern2 body2?...?patternN bodyN? } * while test bo 阅读全文
posted @ 2010-12-04 23:39 greencolor 阅读(164) 评论(0) 推荐(0) 编辑
摘要: putsputs "Hello, World - In quotes" ;# This is a comment after the command.# This is a comment at beginning of a lineputs {Hello, World - In Braces}puts {Bad comment syntax example} # *Error* - there ... 阅读全文
posted @ 2010-11-30 22:22 greencolor 阅读(189) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 82 下一页