摘要: import subprocessimport multiprocessingimport urllibimport sysimport osimport pymongoimport signalimport timeclient=pymongo.MongoClient("192.168.139.1... 阅读全文
posted @ 2015-10-23 16:12 yixiong 阅读(812) 评论(0) 推荐(0) 编辑
摘要: vsftp是一款在Linux发行版中最受推崇的FTP服务器程序。特点是小巧轻快,安全易用。下面介绍CentOS下安装和简单配置 vsftp这个服务软件。在Linux下可以搭建本地YUM库来进行系统软件的安装和管理。这里不多作解释,请看Linux系统下搭建本地YUM库一文。1、安装vsftp:以管理员... 阅读全文
posted @ 2015-01-11 22:39 yixiong 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 以下操作在Cento6.4 系统下实现一、更新使用163的库vi /etc/yum.repos.d/CentOS-Base.repoyum update[base]name=CentOS-$releasever - Base#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=osbaseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/#baseurl=http://mirror.centos.org 阅读全文
posted @ 2014-02-19 11:19 yixiong 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-02-07 11:17 yixiong 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-02-07 11:14 yixiong 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1. 支持C99 在菜单settings->compiler settings->comiler settings->Other options 添加: -std=c992. 支持pthread 在菜单settings->compiler settions->compiler settings->Liner Settings ->Other linker options 添加 -pthread 阅读全文
posted @ 2014-02-06 10:18 yixiong 阅读(419) 评论(0) 推荐(0) 编辑
摘要: #include #include #include void *threadhandle(void *);int sum=0;pthread_mutexattr_t mt= PTHREAD_COND_INITIALIZER;int main(){ pthread_t pt[10]; for(int i=0;i<10;i++) { pthread_create(&pt[i],NULL,threadhandle,i); } for(int i=0;i<10;i++) { pthread_join(pt[i],NULL); } ... 阅读全文
posted @ 2014-01-22 09:37 yixiong 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 错误pthread_t *thr;pthread_create(thr,NULL,threadhander(),NULL);正确pthread_t thr;pthread_create(&thr,NULL,threadhander(),NULL);为什么呢? 阅读全文
posted @ 2014-01-17 10:03 yixiong 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1./bin /usr/bin /usr/local/bin 都是放置用户可执行二进制文件。 2./boot 主要是放置liunx系统启动时用到的文件。 2./dev 文件夹内主要是西东外设与存储有关的一些相关文件。 3./etc 放置设置文件。例如用户帐号密码文件,各种服务文件。 /etc/init.d/多有服务的默认启动脚本都放在这里。 ... 阅读全文
posted @ 2013-11-19 09:22 yixiong 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-10-22 10:58 yixiong 阅读(278) 评论(0) 推荐(0) 编辑