摘要: linux服务管理1 服务分类 linux服务分为rpm包默认安装的服务,源码包安装的服务。其中rpm安装的服务分为独立的服务和基于xinetd服务 学习主要是针对独立的服务的 服务的启动和自启动 查询已安装的服务 rpm包安装的服务 chkconfig --list 查看服务自启动状态,可以看到所 阅读全文
posted @ 2016-01-22 21:06 小德cyj 阅读(207) 评论(0) 推荐(0)
摘要: shell编程 1 echo -e 识别\转义符 \a \b \t \n \x十六进制 \0八进制 等等 #!/bin/bash echo -e "hello world" 执行脚本:方式1 :chmod 755 hello.sh ./hello.sh 方式2 :bash ./hello.sh(这种 阅读全文
posted @ 2016-01-22 21:05 小德cyj 阅读(326) 评论(0) 推荐(0)
摘要: linux 命令学习linux注意事项:1 linux严格区分大小写,windows不区分大小写,linux下所有命令都是小写的,linux系统下文件名区分大小写,windows下文件名不区分大小写。 2 linux中所有内容都是以文件形式保存,包括硬盘。如果没有写到文件中,写到内存中,那么重启后则 阅读全文
posted @ 2016-01-22 21:04 小德cyj 阅读(463) 评论(0) 推荐(0)
摘要: 参考文献: 量子行为粒子群优化算法研究[D], 孙俊 阅读全文
posted @ 2016-01-22 17:31 小德cyj 阅读(1438) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; #define M 50 //群体数目50 #define N 4 //每个粒子的维数4 #define NN 500 //迭代次数 #define chaotic_count 3 //判断是否进入停滞状态 #define gama 0.001 #define R ... 阅读全文
posted @ 2016-01-22 16:55 小德cyj 阅读(3718) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; #define M 50 //群体数目50 #define N 4 //每个粒子的维数4 #define NN 100 //迭代次数 //测试类 class TestFunction { public: double resen(double x1,doubl... 阅读全文
posted @ 2016-01-21 20:11 小德cyj 阅读(393) 评论(0) 推荐(0)
摘要: 参考文献: 量子行为粒子群优化算法研究[D] ,孙俊,博士论文2.4节.#include #include #include using namespace std;#define M 50 //群体数目50#define N 4 //每个粒子的维数4//测试类class TestFunct... 阅读全文
posted @ 2016-01-21 19:03 小德cyj 阅读(4157) 评论(0) 推荐(0)
摘要: 1 参考:http://www.testwo.com/blog/6930 mysql数据库默认的编码是:Latin1,要想支持中文需要修改为gbk/utf8的编码格式。1、以root管理员身份查看数据编码格式。登陆命令:>mysql-u root –p输入密码后如下命令查看数据编码格式:show ... 阅读全文
posted @ 2016-01-17 21:36 小德cyj 阅读(893) 评论(0) 推荐(0)
摘要: 参考自:http://wenku.baidu.com/view/e28bb57c1711cc7931b716a7.html 阅读全文
posted @ 2016-01-12 22:09 小德cyj 阅读(551) 评论(0) 推荐(0)
摘要: 地址总线AB是专门用来传送地址的,由于地址只能从CPU传向外部存储器或I/O端口,所以地址总线总是单向三态的,这与数据总线不同。地址总线的位数决定了CPU可直接寻址的内存空间大小,比如8位微机的地址总线为16位,则其最大可寻址空间为2^16=64KB,16位微型机的地址总线为20位,其可寻址空间为2 阅读全文
posted @ 2016-01-08 16:43 小德cyj 阅读(786) 评论(0) 推荐(0)