Service lcsolr installed. Customize Solr startup configuration in /etc/default/lcsolr.in.sh Waiting up to 180 seconds to see Solr running on port 8985 [\] Started Solr server on port 8985 (pid=17625). Happy searching!
Found 1 Solr nodes:
Solr process 17625 running on port 8985 { "solr_home":"/TestDisk/solrtest/data/data", "version":"6.3.0 a66a44513ee8191e25b477372094bfa846450316 - shalin - 2016-11-02 19:52:42", "startTime":"2016-12-26T11:35:08.023Z", "uptime":"0 days, 0 hours, 0 minutes, 8 seconds", "memory":"84 MB (%17.1) of 490.7 MB"}
vi /etc/nginx/nginx.conf
client_max_body_size 50M;
## check and reload nginx config
nginx -t
nginx -s reload
gitlab timeout
## need to enter gitlab container firstly
## then edit the config
vi config/unicorn.rb
timeout 300
## then restart gitlab in container
## remember that must be in container
/etc/init.d/gitlab restart
git http.postBuffer
另外建议也修改下本地 http.postBuffer 参数
## modify in commandline
git config --global http.postBuffer 524288000
## check config list
git config --list
root@pts/0 $ nginx -t
nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed
How to fix
在nginx的配置文件nginx.conf的http段添加如下配置:
# vi /etc/nginx/nginx.conf
...
http {
...
server_names_hash_max_size 512;
server_names_hash_bucket_size 128;
...
}
...
root@pts/0 $ nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
When visit my own Octpress blog via github(opscolin.github.io), it visited very slow.
And after commont some google related setting in _config.yml, it's still very slow
Method
Except modify _config.yml to commont some google related setting, there still have some font cache and ajax script.
M1
replace with some replaced-source like 360 lib
1, source/_includes/head.html
ajax.googleapis.com ---> userso.com
2, source/_includes/custom/head.html
fonts.googleapis.com ---> userso.com
M2
refer to http://www.chanjar.me/blog/2014/06/29/jia-kuai-octopressguo-nei-fang-wen-su-du/