记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
CentOS 6.4下编译安装MySQL 5.6.14概述: CentOS 6.4下通过yum安装的MySQL是5.1版的,比较老,所以就想通过源代码安装高版本的5.6.14。 正文: 一:卸载旧版本 使用下面的命令检查是否安装有MySQL Server rpm -qa | grep mysql有的话通过下面的命令来卸载掉rpm -e mysql //普通删除模式
rpm -e --nodeps mysql // 强力删除模式,如果使用上面命令删除时,提示有依赖的其它文件,则用该命令可以对其进行强力删除二:安装MySQL安装编译代码需要的包yum -y install make gcc-c++ cmake bison-devel ncurses-devel下载MySQL 5.6.14wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14.tar.gz
tar xvf mysql-5.6.14.tar.gz
cd mysql-5.6.14编译安装cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_DATADIR=/usr/local/mysql/data \
-DSYSCONFDIR=/etc \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \
-DMYSQL_TCP_PORT=3306 \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DE...
zabbix监控服务器部署1.服务器安装lamp环境[root@monitor ~]# yum install gcc gcc-c++ autoconf httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-bcmath mysql-connector-odbc mysql-devel libdbi-dbd-mysql net-snmp-devel curl-devel -y2.配置lamp环境[root@monitor ~]# vim /etc/php.inidate.timezone = Asia/Shanghaimax_execution_time = 300max_input_time = 300 memory_limit = 128Mpost_max_size = 32Mmbstring.func_overload = 2 启动服务[root@monitor ~]# service mysqld start[root@monitor ~]# service httpd start添加到开机启动[root@monitor ~]# chkconfig mysqld on[root@monitor ~]# chkconfig httpd on3.下载并安装zabbix服务端[root@monitor tools]# wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.0.9/zabbix-2.0.9.tar.gz/download[root@monitor tools]# groupadd zabbix -g 201[root@monitor tools]# useradd -g zabbix -u 201 -m zabbix[root@monitor tools]# tar zxf za...
CecOS & CecOSvt 1.1 社区版企业云操作系统即将发布 即将推出的 CecOS 1.1 & CecOSvt 1.1 以 CecOS 1.0 为原型, 在即将发布的版本中 OPENFANS 社区将 CecOS 中的开放式虚拟化管理平台拆分出,作为独立组件安装于 CecOS 框架。目前,据悉OPENFANS 社区正在筹备另一个项目的开始,也就是 CecOS 的另一个组件,云存储项目。 CecOS 是 OPENFANS 为中小型企业提供企业开源云计算解决方案的基础框架;CecOSvt 是一款运行在社区企业云操作系统(CecOS)上的虚拟化开放式解决方案。 CecOS Virtualization 虚拟化功能 虚拟机高可用性(HA) 构建一个高可用的企业基础架构 持续监控主机系统和虚拟机 如果主机失效,虚拟机会自动重启在集群里面的其它节点上启动虚拟机根据策略设置来重新启动虚拟机不需要用户干预 当服务器恢复以后,通过实时迁移可以把虚拟机迁移到最初运行的服务器上 虚拟机实时迁移 在主机之间动态迁移虚拟机服务不会中断应用程序继续运行 对于I/O负载较大的服务也可以迁移 执行硬件维护的时候业务不会停止 动态平衡主机系统的负载 &nb...
ros 3.0 端口分流 实例:现在网吧有2条线,一条12M,一条8M,决定进行端口分流,80端口走12M线(网页视频等),其他走8M(游戏等)账号设置这里不说了主要是80端口分流先做路由标记,如下图:/ip firewall mangleadd action=mark-routing chain=prerouting comment="端口分流" disabled=no dst-port=\ 80 new-connection-mark=80_route passthrough=yes protocol=tcp后设置路由/ip routeadd dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=80_route check-gateway=ping#如果你是ADSL动态IP和动态网关,请用动态脚本改变,注意修改红色部分:global assignaddress:global newaddress:global status:set status [/interface get [/interface find name=pppoe-out1] running] :if ($status=true) do={:set newaddress [/ip address get [/ip address find dynamic=yes interface=pppoe-out1] network]:set assignaddress [/ip route get [/ip route find routing-mark="80_route"] gateway]:if ($assignaddress != $newaddress) do={/ip route set [/ip route find routing-mark=80_route] gateway=$newaddress}
基于GUI的kvm安装WindowsXP,并且在安装时加载virtio驱动。更新声音使用方法有关kvm的使用说明其实不少,但基本都是命令行,对于新手来说不够直观,而且都没有提到关于virtio驱动的安装。于是就再发一篇。使用virtio接口的虚拟硬盘和虚拟网络的性能不是默认的那个IDE接口能比的。从安装虚拟机到运行虚拟系统,全部只要三次使用到命令行。基于10.04,理论上也适用于9.10。以下,开始。确保CPU支持并开启虚拟化:代码:egrep '(vmx|svm)' /proc/cpuinfo有红字(或者其他与众不同的颜色),并且在bios里开启虚拟化。如果没有虚拟化,放弃吧……确保源完整,可以在设置“软件源”,把第一个选项卡的所有选项都选中(源代码不用选)。然后新立得,先要在首选项里选中“把推荐的软件包视作依赖的软件包”,然后标记并安装virt-manager、virt-viewer,新立得会自动把kvm作为依赖标记的。这里插一句:kvm已经和qemu合并了,源里”kvm“和”qemu“都是指向“qemu-kvm”的虚包,源里的版本已经够新的了。要给virt-manager管理员权限,否则是无法自己创建虚拟网络的:代码:sudo gedit /usr/bin/virt-manager当然你可以使用任何你喜欢的文本编辑器替换掉gedit。然后把:代码:exec python &...
开源社区 ovirt-node 介绍 ovirt-node 是开源社区 oVirt 的一个开源项目,它是基于 KVM 和 Linux 技术的一套最 小化的 Linux 系统,它只提供最基本的操作 系统功能以及虚拟机管理等,在整个虚 拟化系统中充当节点主机的功能,是整个虚拟化平台的一个重要组成部分。它具有 小巧,灵活,方便定制等特点。本 文在功能和结构上介绍了 ovirt-node,以及 ovirt-node 的获得,安装,定制化等工作。 评论:乔 立勇, 软件工程师, IBM金 运通, 高级软件工程师, IBM2012 年 7 月 13 日内容ovirt-node 是开源虚拟化管理平台 oVirt 的客户端部分,它是一个经过定制的最小化 fedora 系统,充当虚拟机管理器(Hypervisor)host 的角色,与管理端 overt-engine 组成一个虚拟化管理平台。ovirt-node 以其小巧,灵活的特点,可以很方便地进行开发与定制。overt-node 项目简介ovirt-node 简介ovirt-node 是 Ovirt 社区的一个开源项目,它的目的是构建一个精简、健壮的操作系统镜像,该镜像可以使用最小化的资源去提供控制虚拟机的能力运行在其上面的虚拟机。简单地说 ovirt-node 是一个小的主机镜像,该镜像提供 libvirt/vdsm(Virtual Desktop Server Manager) 和 KVM(Kernel based virtual mach...
Masking a boot device might make /bootbank unavailable on an ESXi system (1021455) Details If you accidentally mask a boot device, the /bootbank partition on your ESXi system might become unavailable. The /bootbank partition contains core hypervisor code and is critical for the functioning of the ESXi system. If the partition becomes unavailable, your system might experience serious performance problems and fail. Solution Use the vSphere CLI to unmask the paths to the boot device.Use the esxcfg-scsidevs -a command to determine which adapter is used for the boot device.Run the following command to obtain a list of all claim rules for the boot device adapter. The following example uses vmhba1 adapter: # esxcli corestorage claimrule list|grep vmhba1In the list, locate the MASK_PATH claim rules, which look similar to the following:MP 148 runtime location MASK_PATH adapter=vmhba1 channel=0 target=0 lun=0MP 148 file location MASK_PATH adapter=vmhba1 channel=0 target=0 lun=0MP 149 runti...
VMDirectPath is a great new feature with vSphere 4.0, but with new features come new challenges. This page will deal with some common configuration problems that you might encounter.1) Disable VMDirectPath with a reboot2) Disable VMDirectPath without a reboot3) Remove devices from the VMDirectPath Configuration when you're unable to do so with the vSphere client4) Dealing with the ESXi boot device that has been enabled for VMDirectPathDisabling VMDirectPath with a rebootYou may encounter a situation where you need to just diable VMDirectPath. If you are able to reboot your host you can set the VMkernel option Boot.noIOMMU to enabled and restart the server. This won't help if you're allocated your boot device to VMDirectPath. For that see this section. When you do this to a host and then go to Configuration \ Hardware \ Advanced Settings, the host will show the message that it does not support VMDirectPath as shown in the second image. If you want to enable VMDirectPath, you can unchec...
Linux 升级Glib时报错 error GNU libiconv not in use but included iconv.h is from libiconv
在使用以下方法编译安装就可以正常使用了。
./configure --prefix=/usr --with-pcre=system --with-libiconv
OpenSSL-1.0.1e Introduction to OpenSSL The OpenSSL package contains management tools and libraries relating to cryptography. These are useful for providing cryptography functions to other packages, such as OpenSSH, email applications and web browsers (for accessing HTTPS sites). This package is known to build and work properly using an LFS-7.4 platform. Package Information Download (HTTP): http://www.openssl.org/source/openssl-1.0.1e.tar.gz Download (FTP): ftp://ftp.openssl.org/source/openssl-1.0.1e.tar.gz Download MD5 sum: 66bf6f10f060d561929de96f9dfe5b8c Download size: 4.3 MB ...
最新评论