git - linux

服务端 1 2 3 4 5 #安装 yum -y install git # 添加仓库 git init --bare sample.git git bash客户端 1 2 3 4 5 6 7 8 #生成公钥 ssh-keygen #导入 ssh -p port root@host 'mkdir -p .ssh && cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub # 下载 git clone --depth 1 --recursive

mysql

单机 安装 1 2 3 4 5 6 wget 'https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm' sudo yum -y install mysql-community-server systemctl start mysqld systemctl status mysqld sudo grep 'temporary password' /var/log/mysqld.log mysql -uroot -p #输入查看到的密码 配置 vim /etc/my.cnf 1 2 3 4 5 6 7 8 [client] default-character-set = utf8 [mysqld] default-storage-engine = INNODB character-set-server = utf8 collation-server = utf8_general_ci #不区分

rabbitmq

下载脚本 1 2 curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash 安装 1 2 yum -y install erlang yum -y install rabbitmq-server 命令 1 2 3 4 5 6 7 8 #启动服务 systemctl start rabbitmq-server #查看状态 systemctl status rabbitmq-server #设置为开机启动 systemctl enable rabbitmq-server 添加用

redis

安装 1 2 3 4 5 yum -y install gcc-c++ wget http://download.redis.io/releases/redis-5.0.9.tar.gz tar xzf redis-5.0.9.tar.gz cd redis-5.0.9 make 配置 1 2 3 4 5 6 7 8 9 #修改配置文件 vi ./redis.conf #daemonize设置为yes daemonize yes #密码 requirepass 123 #注释 #bind 127.0.0.1 启动 src/redis-server

ss

SS 1 2 3 4 5 6 7 8 9 10 11 #安装 wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh && chmod +x shadowsocks-all.sh && ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log #卸载 ./shadowsocks-all.sh uninstall #命令 /etc/init.d/shadowsocks-python start | stop | restart | status #配置文件 /etc/shadowsocks-python/config.json BBR 1 2 3 4 5 #安装 wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh