1:先安装unixodbc --建议用源码
./configure --prefix=/usr/local/unixODBC --includedir=/usr/include --libdir=/usr/lib -bindir=/usr/bin --sysconfdir=/etc
make
make install
其它一些参数说明
--enable-gui=no #不使用qt画图,一般生产环境者是ssh 登陆,所以用不上界面。
--enable-iconv=yes --with-iconv-char-enc=GB18030 #这个是因为后面遇到乱码的问题,尝试用这个编译,但没起作用,不知道用来干嘛
测试:
#dbcinst -j #查看下环境
unixODBC 2.2.14
DRIVERS...
/usr/libexec/mysqld: Can’t find file: ‘./mysql/plugin.frm’ (errno: 13)
Centos6.5 直接复制mysql数据文件,对数据进行异地恢复,报如下错误:
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
160604 21:51:08 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
160604 21:51:08 InnoDB: Initializing buffer pool, size = 8.0M
160604 21:51:08 InnoDB: Completed initialization of buffer pool
160604 21:51:08 InnoDB: Started; log...
WordPress用WP-Cumulus插件实现标签云
WP-Cumulus插件是一款支持多种样式标签云的wordpress插件,我们通过在后台下载安装WP-Cumulus插件,就能够打造一个个性化的标签云样式,喜欢各种完美控的朋友可以操作一下,关于标签云,如果您希望简单一点,那么可以看看纯代码让 WordPress 实现彩色标签云这篇文章.部落网站目前采用的就是代码的样式.
WP-Cumulus插件的下载安装
可以在后台直接搜索:“WP-Cumulus”关键词,第一个就是吧,然后点击立即安装即可,也可以到下面点击wp-cumulus这个文件下载,你需要把下载的插件解压之后用ftp工具上传到你网站的wp-content/plugins/插件目录下.
当然,您也可以去官方的网站上下载,地址是:由此直达.当然,也可以到我的百度网盘上下载,已经修改为支持中文了,地址是:由此直达.
...
Apache下PHP Loaded Configuration File None 解决方法
phpapachePHP Loaded Configuration File
PHP Loaded Configuration File None
phpinfo()输出 loaded configuration file none,
解决方法可在apache配置文件中增加
PHPIniDir “The path to your php.ini”,
比如:PHPIniDir "/usr/local/php/etc/php.ini"
重启apache。
确保PHPIniDir在loadModule php5_module之前...
nginx利用第三方插件fancyindex实现目录浏览
nginx默认的目录浏览功能,页面比较简单,不美观。但nginx官方提供一个第三方模块实现了nginx目录浏览界面的美化。
模块官方文档:fancy: http://wiki.nginx.org/NgxFancyIndex
模块下载方式:
$ git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex
编译很简单,在原有的编译基础上添加一条即可(如下):
$ cd nginx-?.?.?
$ ./configure --add-module=../ngx-fancyindex
更改nginx配置文件:
localtion / {
root /var/www/html/download;
fancyindex on;
fancyindex_exac...
oracle11g安装
安装前须知:
内存(RAM)的最小要求是 1GB,建议 2GB 及以上。
虚拟内存 swap 建议:内存为 1GB~2GB 时建议swap大小为内存大小的 1.5 倍;内存为 2GB~16GB 时建议swap大小为内存的大小;内存超过 16GB 时swap保持16GB。
要求临时文件目录,如 /tmp 的磁盘空间至少 1GB。
磁盘空间要求:企业版为4.35GB的安装空间和1.7GB以上的数据文件空间;标准版为4.22GB的安装空间和1.5GB以上的数据文件空间。
需要 X window 图形界面。
需要 root 用户权
安装环境:
操作系统 CentOS 6.5 2.6.32-358.el6.x86_64(desktop),2GB RAM,80GB 硬盘空间(4GB swap、100MB /boot、40...
ceph安装部署
mon节点:hp-server-6 、hp-server-7 、hp-server-8
osd节点:hp-server-1 、hp-server-2 、hp-server-3 、hp-server-4 、hp-server-5 、hp-server-
6、hp-server-7 、hp-server-8
Ceph安装
准备
1、每台主机设置主机名,如WH-hp-server-1
2、设置hosts vim etc/hosts
172.16.10.1 WH-hp-server-1
3、部署节点到其他节点使用comall用户ssh无密码登录
4、安装ntp服务器,关闭selinux和防火墙。
1、部署节点更改ceph源
centos7(此ceph源为阿里云提供,只支持centos...
linux多线程执行命令(扫描存活主机)
#!/usr/bin/env python
from threading import Thread
import subprocess
from Queue import Queue
import time
num_threads=10
iprange='192.168.230.'
ips=[]
iplist=range(250)
for i in iplist:
ips.append(iprange+str(i))
#print ips
#time.sleep(5)
#ips=['127.0.0.1','116.56.148.187','192.168.230.1','192.168.230.2','192.168.230.4']
q=Queue()
def pingme(i,qu...