用户工具

站点工具


linux:centos
yum install -y mariadb mariadb-server
  • 安装java、maven、git
yum install -y java  # maven、git
  • 自动运行
vi /etc/rc.d/rc.local   # 需要chmod +x /etc/rc.d/rc.local,支持nginx java ourjs
chkconfig --list    # 设置on则自动运行 chkconfig --level 5 mysql on,支持redis svnserve vsftpd
vi ~/.bash_profile # alias jget="java Get",命令别名
  • 以普通用户身份运行
su jenkins -c 'sh restart.sh' &
  • 磁盘清理
cd /var/spool/clientmqueue && rm -f *,crontab命令抛弃输出:> /dev/null 2>&1
  • error while loading shared libraries: /lib64/libc.so.6
LD_PRELOAD=/lib64/libc-2.5.so mv /lib64/libc.so.6 /lib64/libc.so.6.bak  #也可以删除
LD_PRELOAD=/lib64/libc-2.5.so ln -s /lib64/libc-2.5.so /lib64/libc.so.6
  • 阿里云监控
https://help.aliyun.com/knowledge_detail/38831.html
http://imgs-storage.cdn.aliyuncs.com/help/jiankong/cms_post.sh
  • 影梭
yum install python-setuptools && easy_install pip
pip install shadowsocks
vi /etc/shadowsocks.json
{
  "server": "0.0.0.0",
  "server_port": 8388,
  "local_address": "127.0.0.1",
  "local_port": 1080,
  "password": "riphic9eeGaht1oOLu0oyoon",
  "timeout": 300,
  "method": "aes-256-cfb",
  "fast_open": true
}
多账户配置
"port_password":{  
"8381":"xxxxxxx",  
"8382":"xxxxxxx",  
"8383":"xxxxxxx",   
}
ssserver -c /etc/shadowsocks.json --user nobody -d start
ssserver -c /etc/shadowsocks.json --user nobody -d stop
tail -f /var/log/shadowsocks.log
加速,内核不支持就算了
wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh
linux/centos.txt · 最后更改: 2020/11/10 10:46 由 admin