shibazi

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 5 6 7 8 9

2014年6月11日

摘要: 1、使用distinct查询所有不重复的记录2、创建数据表相同结构的临时表,将第一步的数据复制进去 create temporary table if not exists student_temp as (select distinct(name), sex from student);3、tru... 阅读全文
posted @ 2014-06-11 09:10 一生学习,何来毕业 阅读(446) 评论(0) 推荐(0) 编辑

2014年6月10日

摘要: 1、修改主服务器master: #vi /etc/my.cnf [mysqld] log-bin=mysql-bin //[必须]启用二进制日志 server-id=222 //[必须]服务器唯一ID,默认是1,一般取IP最后一段2、修改从服务器slave: #vi /etc/my.cnf [mys... 阅读全文
posted @ 2014-06-10 23:27 一生学习,何来毕业 阅读(325) 评论(0) 推荐(0) 编辑

2014年4月4日

摘要: 准备工作:1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT#允许80端口通过防火墙-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT#允许3306端口通过防火墙将以上内容添加到-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT 的下面/etc/init.d/ipta 阅读全文
posted @ 2014-04-04 08:10 一生学习,何来毕业 阅读(193) 评论(0) 推荐(0) 编辑

2014年4月2日

摘要: 安装之前查一下1find/-nameopenldap*centos6.4默认安装了LDAP,但没有装ldap-server和ldap-client于是yum安装1suroot2yuminstall-yopenldapopenldap-serversopenldap-clients不建议编译源码包,有依赖比较麻烦网上很多人说在安装openladp之前,需要先安装Berkeley,作为ladp的存储方案,这个不是必须的,可以不装!安装以后进行配置1cp/usr/share/openldap-servers/slapd.conf.obsolete/etc/openldap/slapd.conf2cp 阅读全文
posted @ 2014-04-02 07:39 一生学习,何来毕业 阅读(394) 评论(0) 推荐(0) 编辑

摘要: yum:Could not retrieve mirrorlist http://mirrorlist.centos.org || PYCURL ERROR 6通过centos安装openldap的时候出现如题yum错误vi /etc/resolv.conf 将其中的地址替换为:nameserver 8.8.8.8 即可:;似乎问题是出在DNS解析上 阅读全文
posted @ 2014-04-02 07:25 一生学习,何来毕业 阅读(608) 评论(0) 推荐(0) 编辑

2014年3月31日

摘要: 解决centos 6.3 yum安装软件时找不到镜像问题[root@nagios-server~]#yumupdate–yLoadedplugins:fastestmirrorLoadingmirrorspeedsfromcachedhostfileCouldnotretrievemirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=oserrorwas14:PYCURLERROR6-"Couldn'tresolvehost'mirrorlist.centos.org 阅读全文
posted @ 2014-03-31 07:45 一生学习,何来毕业 阅读(465) 评论(0) 推荐(0) 编辑

摘要: 解决办法:首先,打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:# vi /etc/udev/rules.d/70-persistent-net.rules# This file was automatically generated by the /lib/udev/write_net_rules# program, run by the persistent-net-generator.rules rules file.## You can modify it, as long as you keep each rule on a 阅读全文
posted @ 2014-03-31 07:37 一生学习,何来毕业 阅读(316) 评论(0) 推荐(0) 编辑

摘要: [root@hexuweb101 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0添加下面代码:check_link_down () { return 1;}我有一个集成网卡,和独立网卡,所以我要所上面的代码加到两个地方:[root@hexuweb101 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1接下来,重起网络[root@hexuweb101 ~]# ifup eth0Determining IP information for eth0... done.好了,看到上面的提示说明... 阅读全文
posted @ 2014-03-31 07:35 一生学习,何来毕业 阅读(1240) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9