分类 - web

leanote 笔记    2020-08-10 08:02:49    5    0    0



1、安装MongoDB
Leanote 依赖 MongoDB 作为数据存储

运行依赖
yum install libcurl openssl openssh-clients numactl

MongoDB基本优化
echo "echo never > /sys/kernel/mm/transparent_hugepage/defrag" >>/etc/rc.local
e
2020-08-10 04:17:01    6    0    0

菜刀摄影主题bootstrap_darkroom自定义修改
1、首页间距修改 路经:theme.css文件里的

#content { min-height: 100px; }修改为:#content { min-height: 10px;}

 

2、首页footer.php文件修改:

{'Powered by'|@translate}<br /> <a href="http://yum

2020-08-10 04:17:01    14    0    0

一个快速配置shadowsocks的方法,简单又稳定:

安装:

yum install python-setuptools -y && easy_install pip pip install shadowsocks

启停:

ssserver -p 8000 -k yourpassword -d start

ssserver -d stop

基本就三条命令启动shadowssocks,用自己的硅谷服务器测试了下速度相当可以,稳定性也还不错,适合做一些不可描述的事情

shadowsocks其他参数 usage: ssserver [OPTION]… A fast tunnel proxy that helps you bypass firewalls.

You can supply configurations via either config file or command line arguments.

Proxy options: -c CONFIG path to config file -s SERVER_ADDR server address, default: 0.0.0.0 -p SERVER_PORT server port, default: 8388 -k PASSWORD password -m METHOD encryption method, default: aes-256-cfb(注意这里的默认加密) -t TIMEOUT timeout in seconds, default: 300 –fast-open use TCP_FASTOPEN, requires Linux 3.7+ –workers WORKERS number of workers, available on Unix/Linux –forbidden-ip IPLIST comma seperated IP list forbidden to connect –manager-address ADDR optional server manager UDP address, see wiki

General options: -h, –help show this help message and exit -d start/stop/restart daemon mode –pi