haproxy部署脚本
#!/bin/bash #install haproxy #20160224 by rocdk890 #variables dir=/usr/local ha_dir=${dir}/haproxy ha_cfg=${ha_dir}/conf/haproxy.cfg ha_init=/etc/init.d/haproxy ker...
#!/bin/bash #install haproxy #20160224 by rocdk890 #variables dir=/usr/local ha_dir=${dir}/haproxy ha_cfg=${ha_dir}/conf/haproxy.cfg ha_init=/etc/init.d/haproxy ker...
在使用docker容器时,同时你docker里的系统正好是debian或ubuntu的时候,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found,这个时候就需要安装vim,可是当你敲apt-get install vim命令时,提示:
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim
1.安装 MariaDB repository
* 在64位系统上安装MariaDB 10.0
### CentOS 7.x 64位 MariaDB 10.0 ## cat <<EOF > /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0/rhel7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF
#!/bin/bash #This script is dynamic modi...
#!/bin/bash # By rocdk890 # https://blog.slogra.com #Check the network is online read -p "Enter your network segment(example 192.168.1.):" ip_num echo "Please wait..." for i in...
#!/bin/bash # ID 201510192126 # Author Ricky # E-mail 564001002@qq.com # CentOS 6 系统初始优化脚本 # version 1.1.0 # 检查是否为root用户,脚本必须在root权限下运行 # if [[ "$(whoami)" != "root" ]]; then echo "please run this script as root !" >&2 exit 1 fi echo -e "\033[31m the script only Support CentOS_6 x86_64 \033[0m" echo -e "\033[31m system initialization script, Please Seriously. press ctrl+C to cancel \033[0m" # 按Y继续默认N,其他按键全部退出...