/images/avatar.png

Mulinux运维

CentOS7重新部署ixgbe驱动

下载并安装 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 yum install gcc make 微软官网下载ixgbe tar -xvf ixgbe-5.3.7.tar.gz cd ixgbe-5.3.7/src make modinfo ./ixgbe.ko rmmod ixgbe.ko modinfo ./ixgbe.ko | grep depend modprobe dca insmod ./ixgbe.ko insmod ./ixgbe.ko FdirPballoc=3 RSS=16 dmesg make install modprobe ixgbe modinfo ixgbe 参考 https://blog.csdn.net/u011846257/article/details/52350369 https://www.linuxidc.com/Linux/2015-06/118300.htm https://blog.csdn.net/zhang_danf/article/details/17758669

Python 开发环境

python开发环境 1 2 3 4 5 6 7 8 git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshenv exec "$SHELL" pyenv virtualenv 3.6.9 ops-drf-env-3.6.9 pyenv activate ops-drf-env-3.6.9 pip install Django==1.11 pip install MySQLdb

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条