依赖包安装 1 2 3 4 5 yum -y install gcc gcc-c++ make zlib zlib-devel openssl expat-devel openssl-devel pcre pcre-devel 相关包下载地址:https://mirrors.tuna.tsinghua.edu.cn/ap
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
通过接口管理shterm 以下是示例代码,可根据接口文档进行编写自己的管理代码。 实例 1 配置设备 id 为 1 上 id 为 3 的账号切换自 id 为 11 的帐号 1 2 3 4 5
魔方网表API接口记录 1 2 3 /s/json/{spaceId}/forms/{formId}?selector={selector} ##label就是名字,name就是字段id /s/json/{spaceId}/forms/{formId}/
文件信息配置 打开pycharm,选择File-Settings 选择Editor–Color&Style–Fi
安装 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 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
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条
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
启用nested CentOS6 升级系统内核到Linux 3.X版本 rpm -ivh kernel-ml-3.18.3-1.el6.elrepo.x86_64.rpm 修改grub.conf vi /etc/grub.conf 将default=1改为default=0;且在 kernel 那一行