Centos调整/home,/root分区大小
mkdir /backup mv /home/* /backup/ umount /home lvremove /dev/centos/home lvcreate -L 50G -n home cents mkfs -t xfs /dev/centos/home mv /backup/* /home/ lvextend -L +xxxG /dev/centos/root xfs_growfs root
网事随记
mkdir /backup mv /home/* /backup/ umount /home lvremove /dev/centos/home lvcreate -L 50G -n home cents mkfs -t xfs /dev/centos/home mv /backup/* /home/ lvextend -L +xxxG /dev/centos/root xfs_growfs root
#!/bin/bash ########################### red='\e[0;31m' RED='\e[1;31m' green='\e[0;32m' GREEN='\e[1;32m' blue='\e[0;34m' BLUE='\e[1;34m' purple='\e[0;35m' PURPLE='\e[1;35m' NC='\e[0m' ########################### source /etc/bashrc source /etc/profile MySQL_USER=zabbix MySQL_PASSWORD=zabbix #修改对应的密码 MySQL_HOST=localhost MySQL_PORT=3306 MySQL_DUMP_PATH=/home/zabbix-datafile-backup MYSQL_BIN_PATH=/usr/bin/mysql MYSQL_DUMP_BIN_PATH=/usr/bin/mysqldump
LANG="zh_CN.UTF-8" LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN" SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en" SYSFONT="lat0-sun16"
driver_jar_path => "/opt/mysql-connector-java-8.0.21.jar" driver_class => "com.mysql.jdbc.Driver" connection_string => "jdbc:mysql://127.0.0.1:3306/库名?user=USERNAME&password=PASSWORD&useUnicode=true&characterEncoding=UTF8"
barnyard2-master.zip https://codeload.github.com/firnsy/barnyard2/zip/master base-1.4.5.tar.gz https://nchc.dl.sourceforge.net/project/secureideas/BASE/base-1.4.5/base-1.4.5.tar.gz daq-master.zip https://codeload.github.com/jasonish/daq/zip/master adodb-5.20.18.zip https://nchc.dl.sourceforge.net/project/adodb/adodb-php5-only/adodb-520-for-php5/adodb-5.20.18.zip Image_Canvas-0.3.5.tgz http://download.pear.php.net/package/Image_Canvas-0.3.5.tgz
V