/images/avatar.png

Mulinux运维

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条

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