/images/avatar.png

Mulinux运维

Deepin安装使用KVM

安装 1 2 3 sudo apt-get install kvm qtemu ##安装kvm和qt前端 apt install qemu-kvm libvirt-clients qemu-utils libvirt-daemon-system # deepin 15.8 sudo apt-get install qemu-system #deepin 15.8 卸载 1 2 sudo apt-get remove kvm qtemu ##卸载kvm和qt前端 apt-get install libvirt-bin virt-manager ##工作常用工具

Docker镜像管理

安装docker 1 2 3 4 5 6 7 8 9 Centos6.6_x64 [root@web1 ~]# uname -a Linux web1.mulinux.com 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux [root@web1 ~]# yum install -y epel-release [root@web1 ~]# yum install -y docker-io [root@web1 ~]# /etc/init.d/docker start [root@web1 ~]# ps aux | grep docker root 1591 1.0 1.4 287656 14224 pts/0 Sl 18:30 0:00

Apache主机使用.htaccess文件实现301跳转

PHP主机301设置: 将以下规则添加到.htaccess文件 1 2 3 4 5 6 7 8 9 10 11 <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^mulinux.com$ [NC] RewriteCond %{HTTP_HOST} ^mulinux.com$ [NC] RewriteRule ^(.*)$ http://blog.mulinux.com/$1 [R=301,L] </IfModule> RewriteCond条

Typecho Blog 环境配置

MariaDB 10 安装 MariaDB repo 1 2 3 4 5 6 7 8 cat /etc/yum.repos.d/MariaDB10.repo # MariaDB 10.0 CentOS repository list - created 2014-09-28 09:10 UTC # http://mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 yum & config 1 2 3 4 5 6 7 8 9 10 11 yum install mysql-server mysql-client vi /etc/my.cnf.d/server.cnf [mysqld] character_set_server=utf8 init_connect='SET NAMES utf8' mysqladmin -u root password "123456"; mysql -uroot

Use Lvs

参考 http://kb.linuxvirtualserver.org/images/c/c8/LVS%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C.zip http://github.com/alibaba/LVS

Hadoop2.6集群部署

上传hadoop和jdk安装包并解压 下载地址: 1 2 http://mirror.bit.edu.cn/apache/hadoop/common http://www.oracle.com/technetwork/java/javase/downloads/ 下载并解压 1 2 3 4 5 wget http://archive.apache.org/dist/hadoop/common/hadoop-2.6.0/hadoop-2.6.1.tar.gz tar zxf jdk-8u172-linux-x64.tar.gz mv jdk1.8.0_172 /usr/local/ tar zxf hadoop-2.6.0.tar.gz mv hadoop-2.6.0 /usr/local/ 添加环境变量 vi ~/.bashrc 1 2 3 4 5 6 7 8 9 10 #