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

vps

安装工具包 1 2 3 4 yum -y update && yum -y upgrade yum -y install wget yum -y install vim yum -y install zip unzip vim配置 vim /root/.vimrc 1 2 3 4 5 #设置tab分隔符为4个空格 set tabstop=4 #解决中文乱码的设置 set termencoding=utf-8 set

idea

Help Edit Custom VM Options… 1 -Dfile.encoding=UTF-8 Settings Editor File and Code Templates Files–>Class 1 2 3 /** * @author ${USER} */ File Types ignore files and folders 添加*.idea;*.iml; General Auto Import Add unambiguous imports on the fly Optimize imports on the fly Code Completion Match case Editor Tabs Show tabs in one row Tab limit

effective java

1. 考虑使用静态工厂方法替代构造方法 1 2 3 public static Boolean valueOf(boolean b) { return b ? Boolean.TRUE : Boolean.FALSE; } 优点 有名字(BigInteger.probablePrime) 不用每次调用