Ethernet Servers VPS bench(680,1028)

========================================================================
BYTE UNIX Benchmarks (Version 5.1.2)

System: : GNU/Linux
OS: GNU/Linux — 2.6.32-042stab113.11 — #1 SMP Fri Dec 18 17:32:04 MSK 2015
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPU 0: Intel(R) Xeon(R) CPU E3-1270 v3 @ 3.50GHz (6999.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
CPU 1: Intel(R) Xeon(R) CPU E3-1270 v3 @ 3.50GHz (6999.4 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
19:27:19 up 5:50, 1 user, load average: 0.53, 0.46, 0.25; runlevel 5

————————————————————————
Benchmark Run: Tue Apr 26 2016 19:27:19 – 19:55:57
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 22583930.4 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4562.3 MWIPS (9.8 s, 7 samples)
Execl Throughput 781.2 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 429579.2 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 107180.7 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 841976.7 KBps (30.0 s, 2 samples)
Pipe Throughput 1202817.1 lps (10.0 s, 7 samples)
Pipe-based Context Switching 194721.5 lps (10.0 s, 7 samples)
Process Creation 3288.1 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 1186.5 lpm (60.2 s, 2 samples)
Shell Scripts (8 concurrent) 300.5 lpm (60.2 s, 2 samples)
System Call Overhead 2879803.1 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 22583930.4 1935.2
Double-Precision Whetstone 55.0 4562.3 829.5
Execl Throughput 43.0 781.2 181.7
File Copy 1024 bufsize 2000 maxblocks 3960.0 429579.2 1084.8
File Copy 256 bufsize 500 maxblocks 1655.0 107180.7 647.6
File Copy 4096 bufsize 8000 maxblocks 5800.0 841976.7 1451.7
Pipe Throughput 12440.0 1202817.1 966.9
Pipe-based Context Switching 4000.0 194721.5 486.8
Process Creation 126.0 3288.1 261.0
Shell Scripts (1 concurrent) 42.4 1186.5 279.8
Shell Scripts (8 concurrent) 6.0 300.5 500.8
System Call Overhead 15000.0 2879803.1 1919.9
========
System Benchmarks Index Score 680.3

————————————————————————
Benchmark Run: Tue Apr 26 2016 19:55:58 – 20:25:28
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables 38073264.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 9170.3 MWIPS (9.7 s, 7 samples)
Execl Throughput 4631.0 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 312982.3 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 98788.1 KBps (30.4 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 808232.8 KBps (30.0 s, 2 samples)
Pipe Throughput 1725146.0 lps (10.0 s, 7 samples)
Pipe-based Context Switching 287283.0 lps (10.0 s, 7 samples)
Process Creation 8338.6 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 2021.6 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 289.6 lpm (60.2 s, 2 samples)
System Call Overhead 3610118.3 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 38073264.9 3262.5
Double-Precision Whetstone 55.0 9170.3 1667.3
Execl Throughput 43.0 4631.0 1077.0
File Copy 1024 bufsize 2000 maxblocks 3960.0 312982.3 790.4
File Copy 256 bufsize 500 maxblocks 1655.0 98788.1 596.9
File Copy 4096 bufsize 8000 maxblocks 5800.0 808232.8 1393.5
Pipe Throughput 12440.0 1725146.0 1386.8
Pipe-based Context Switching 4000.0 287283.0 718.2
Process Creation 126.0 8338.6 661.8
Shell Scripts (1 concurrent) 42.4 2021.6 476.8
Shell Scripts (8 concurrent) 6.0 289.6 482.7
System Call Overhead 15000.0 3610118.3 2406.7
========
System Benchmarks Index Score 1028.8

Ubuntu 16.04 LTS Launched

Downloading site

Some of the big improvements:
LXD,aLinux container hypervisor.
ZFS on Linux,a combined file system and logical volume manager designed by Sun Microsystems.
Ceph integration,an object storage based free software storage platform that stores data on a single distributed computer cluster, and provides interfaces for object-, block- and file-level storage.
Snap,Snappy is included by default in Ubuntu 16.04 desktop images. Developers can use snaps to create command line tools, background services as well as desktop applications.
Power8 and ARMv8 support.

4.Getting started with LXD
sudo apt update
sudo apt install lxd
sudo lxd init

The package creates a new “lxd” group which contains all users allowed to talk to
lxd over the local unix socket. All members of the “admin” and “sudoers” groups are automatically added.

The core of LXD is a daemon which offers a REST API( representational state transfer application programming interface) to drive full system containers just like you’d drive virtual machines. LXD is currently based on top of LXC.
Ubuntu provide two such clients:

A command line tool called “lxc”
An OpenStack Nova plugin called nova-compute-lxd
The former is mostly aimed at small deployments ranging from a single machine (your laptop) to a few dozen hosts. The latter seamlessly integrates inside your OpenStack infrastructure and lets you manage containers exactly like you would virtual machines.

LXD achieves 14.5 times greater density than KVM
LXD launches instances 94% faster than KVM
LXD provides 57% less latency than KVM
More density than LVM,the server with 16GB of RAM was able to launch 37 KVM guests, and 536 identical LXD guests.

Linux Bench Mark of Soyoustart server VS Homebased Bay-tray Server

SysBench is a modular, cross-platform and multi-threaded benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load.

$apt-get install sysbench

Soyoustart E3-SAT-3 Intel Xeon E3 1245v2 4c/8t 3.4 GHz+ 32 GB 2x2TB SATA SoftRaid 16IPv4 $56.00CAD/Mnth

$ sysbench –test=cpu –cpu-max-prime=20000 run
sysbench 0.4.12: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000

Test execution summary:
total time: 22.2765s
total number of events: 10000
total time taken by event execution: 22.2758
per-request statistics:
min: 2.21ms
avg: 2.23ms
max: 5.35ms
approx. 95 percentile: 2.28ms

Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 22.2758/0.00

$ sysbench –test=fileio –file-total-size=150G –file-test-mode=rndrw –init-rng=on –max-time=300 –max-requests=0 run
sysbench 0.4.12: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1
Initializing random number generator from timer.

Extra file open flags: 0
128 files, 1.1719Gb each
150Gb total file size
Block size 16Kb
Number of random requests for random IO: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Threads started!
Time limit exceeded, exiting…
Done.

Operations performed: 21840 Read, 14560 Write, 46551 Other = 82951 Total
Read 341.25Mb Written 227.5Mb Total transferred 568.75Mb (1.8958Mb/sec)
121.33 Requests/sec executed

Test execution summary:
total time: 300.0083s
total number of events: 36400
total time taken by event execution: 154.0920
per-request statistics:
min: 0.00ms
avg: 4.23ms
max: 67.57ms
approx. 95 percentile: 11.50ms

Threads fairness:
events (avg/stddev): 36400.0000/0.00
execution time (avg/stddev): 154.0920/0.00
$sysbench –test=fileio –file-total-size=150G cleanup

$sysbench –test=oltp –oltp-table-size=1000000 –mysql-db=test –mysql-user=root –mysql-password=XXXXXXXX prepare
$sysbench –test=oltp –oltp-table-size=1000000 –mysql-db=test –mysql-user=root –mysql-password=XXXXXXXX–max-time=60 –oltp-read-only=on –max-requests=0 –num-threads=8 run
sysbench 0.4.12: multi-threaded system evaluation benchmark

No DB drivers specified, using mysql
Running the test with following options:
Number of threads: 8

Doing OLTP test.
Running mixed OLTP test
Doing read-only test
Using Special distribution (12 iterations, 1 pct of values are returned in 75 pct cases)
Using “BEGIN” for starting transactions
Using auto_inc on the id column
Threads started!
Time limit exceeded, exiting…
(last message repeated 7 times)
Done.

OLTP test statistics:
queries performed:
read: 1342600
write: 0
other: 191800
total: 1534400
transactions: 95900 (1598.25 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 1342600 (22375.45 per sec.)
other operations: 191800 (3196.49 per sec.)

Test execution summary:
total time: 60.0033s
total number of events: 95900
total time taken by event execution: 479.4940
per-request statistics:
min: 1.74ms
avg: 5.00ms
max: 65.49ms
approx. 95 percentile: 6.31ms

Threads fairness:
events (avg/stddev): 11987.5000/25.12
execution time (avg/stddev): 59.9368/0.00

$sysbench –test=oltp –mysql-db=test –mysql-user=root –mysql-password=XXXXXXXX cleanup

Home Tray- Server
$ sysbench –test=cpu –cpu-max-prime=20000 run
sysbench 0.4.12: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 20000

Test execution summary:
total time: 42.9262s
total number of events: 10000
total time taken by event execution: 42.9202
per-request statistics:
min: 4.25ms
avg: 4.29ms
max: 12.57ms
approx. 95 percentile: 4.32ms

Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 42.9202/0.00

$ sysbench –test=fileio –file-total-size=150G –file-test-mode=rndrw –init-rng=on –max-time=300 –max-requests=0 run
sysbench 0.4.12: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1
Initializing random number generator from timer.

Extra file open flags: 0
128 files, 1.1719Gb each
150Gb total file size
Block size 16Kb
Number of random requests for random IO: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Threads started!
Time limit exceeded, exiting…
Done.

Operations performed: 19740 Read, 13160 Write, 42010 Other = 74910 Total
Read 308.44Mb Written 205.62Mb Total transferred 514.06Mb (1.7135Mb/sec)
109.66 Requests/sec executed

Test execution summary:
total time: 300.0087s
total number of events: 32900
total time taken by event execution: 177.1898
per-request statistics:
min: 0.01ms
avg: 5.39ms
max: 53.44ms
approx. 95 percentile: 12.98ms

Threads fairness:
events (avg/stddev): 32900.0000/0.00
execution time (avg/stddev): 177.1898/0.00
$sysbench –test=fileio –file-total-size=150G cleanup

~$ sysbench –test=oltp –oltp-table-size=1000000 –mysql-db=test –mysql-user=root –mysql-password=XXXXXXXX–max-time=60 –oltp-read-only=on –max-requests=0 –num-threads=8 run
sysbench 0.4.12: multi-threaded system evaluation benchmark

No DB drivers specified, using mysql
Running the test with following options:
Number of threads: 8

Doing OLTP test.
Running mixed OLTP test
Doing read-only test
Using Special distribution (12 iterations, 1 pct of values are returned in 75 pct cases)
Using “BEGIN” for starting transactions
Using auto_inc on the id column
Threads started!
Time limit exceeded, exiting…
(last message repeated 7 times)
Done.

OLTP test statistics:
queries performed:
read: 330694
write: 0
other: 47242
total: 377936
transactions: 23621 (393.60 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 330694 (5510.46 per sec.)
other operations: 47242 (787.21 per sec.)

Test execution summary:
total time: 60.0120s
total number of events: 23621
total time taken by event execution: 479.8122
per-request statistics:
min: 2.88ms
avg: 20.31ms
max: 54.78ms
approx. 95 percentile: 29.62ms

Threads fairness:
events (avg/stddev): 2952.6250/13.99
execution time (avg/stddev): 59.9765/0.00

$sysbench –test=oltp –mysql-db=test –mysql-user=root –mysql-password=XXXXXXXX cleanup

结论:

抵挡的之强E3 服务器的性能,与抵挡的个人Bay-Tray机的比较:

CPU性能  2倍

磁盘读写,稍微快一点,不明显

MySQL性能,5倍。

UnixBench

SoyouStart SYS-E3-SAT-3T

CPU 0: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz (6784.1 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
…..
CPU 7:
06:34:11 up 45 days, 23:16, 1 user, load average: 1.08, 0.73, 0.43; runlevel 2

————————————————————————
Benchmark Run: Fri Apr 22 2016 06:34:11 – 07:03:19
8 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 41985868.5 lps (10.0 s, 7 samples)
Double-Precision Whetstone 3860.2 MWIPS (13.9 s, 7 samples)
Execl Throughput 2143.0 lps (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1341320.6 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 354148.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 3038413.2 KBps (30.0 s, 2 samples)
Pipe Throughput 2810580.9 lps (10.0 s, 7 samples)
Pipe-based Context Switching 125135.9 lps (10.0 s, 7 samples)
Process Creation 9474.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 4708.7 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 2601.0 lpm (60.0 s, 2 samples)
System Call Overhead 4995876.6 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 41985868.5 3597.8
Double-Precision Whetstone 55.0 3860.2 701.9
Execl Throughput 43.0 2143.0 498.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 1341320.6 3387.2
File Copy 256 bufsize 500 maxblocks 1655.0 354148.0 2139.9
File Copy 4096 bufsize 8000 maxblocks 5800.0 3038413.2 5238.6
Pipe Throughput 12440.0 2810580.9 2259.3
Pipe-based Context Switching 4000.0 125135.9 312.8
Process Creation 126.0 9474.5 751.9
Shell Scripts (1 concurrent) 42.4 4708.7 1110.5
Shell Scripts (8 concurrent) 6.0 2601.0 4335.1
System Call Overhead 15000.0 4995876.6 3330.6
========
System Benchmarks Index Score 1650.0

————————————————————————
Benchmark Run: Fri Apr 22 2016 07:03:19 – 07:31:57
8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables 184253998.2 lps (10.0 s, 7 samples)
Double-Precision Whetstone 34534.8 MWIPS (9.9 s, 7 samples)
Execl Throughput 20302.3 lps (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1060155.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 267058.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 3048746.6 KBps (30.0 s, 2 samples)
Pipe Throughput 12012576.2 lps (10.0 s, 7 samples)
Pipe-based Context Switching 1552004.4 lps (10.0 s, 7 samples)
Process Creation 49549.3 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 28008.1 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 4678.1 lpm (60.1 s, 2 samples)
System Call Overhead 10960493.1 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 184253998.2 15788.7
Double-Precision Whetstone 55.0 34534.8 6279.1
Execl Throughput 43.0 20302.3 4721.5
File Copy 1024 bufsize 2000 maxblocks 3960.0 1060155.1 2677.2
File Copy 256 bufsize 500 maxblocks 1655.0 267058.0 1613.6
File Copy 4096 bufsize 8000 maxblocks 5800.0 3048746.6 5256.5
Pipe Throughput 12440.0 12012576.2 9656.4
Pipe-based Context Switching 4000.0 1552004.4 3880.0
Process Creation 126.0 49549.3 3932.5
Shell Scripts (1 concurrent) 42.4 28008.1 6605.7
Shell Scripts (8 concurrent) 6.0 4678.1 7796.8
System Call Overhead 15000.0 10960493.1 7307.0
========
System Benchmarks Index Score 5381.0

Bay-tray Server at home

========================================================================
BYTE UNIX Benchmarks (Version 5.1.2)

System: pioneer-PC: GNU/Linux
OS: GNU/Linux — 3.13.0-85-generic — #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPU 0: Intel(R) Celeron(R) CPU J1800 @ 2.41GHz (4832.9 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
CPU 1: Intel(R) Celeron(R) CPU J1800 @ 2.41GHz (4832.9 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
06:51:30 up 8 days, 9:01, 1 user, load average: 1.93, 1.43, 0.98; runlevel 2

————————————————————————
Benchmark Run: Fri Apr 22 2016 06:51:30 – 07:19:49
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 12909173.8 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2181.9 MWIPS (9.9 s, 7 samples)
Execl Throughput 1251.0 lps (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 385660.0 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 110242.6 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 885921.6 KBps (30.0 s, 2 samples)
Pipe Throughput 988040.7 lps (10.0 s, 7 samples)
Pipe-based Context Switching 58298.2 lps (10.0 s, 7 samples)
Process Creation 4310.3 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 3060.0 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 723.9 lpm (60.0 s, 2 samples)
System Call Overhead 1941336.5 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 12909173.8 1106.2
Double-Precision Whetstone 55.0 2181.9 396.7
Execl Throughput 43.0 1251.0 290.9
File Copy 1024 bufsize 2000 maxblocks 3960.0 385660.0 973.9
File Copy 256 bufsize 500 maxblocks 1655.0 110242.6 666.1
File Copy 4096 bufsize 8000 maxblocks 5800.0 885921.6 1527.5
Pipe Throughput 12440.0 988040.7 794.2
Pipe-based Context Switching 4000.0 58298.2 145.7
Process Creation 126.0 4310.3 342.1
Shell Scripts (1 concurrent) 42.4 3060.0 721.7
Shell Scripts (8 concurrent) 6.0 723.9 1206.5
System Call Overhead 15000.0 1941336.5 1294.2
========
System Benchmarks Index Score 649.6

————————————————————————
Benchmark Run: Fri Apr 22 2016 07:19:49 – 07:48:28
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables 23912237.5 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4363.3 MWIPS (10.0 s, 7 samples)
Execl Throughput 3624.6 lps (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 453392.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 125918.3 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1111064.5 KBps (30.0 s, 2 samples)
Pipe Throughput 1838487.1 lps (10.0 s, 7 samples)
Pipe-based Context Switching 223319.6 lps (10.0 s, 7 samples)
Process Creation 10257.7 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 4885.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 770.6 lpm (60.1 s, 2 samples)
System Call Overhead 2806574.8 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 23912237.5 2049.0
Double-Precision Whetstone 55.0 4363.3 793.3
Execl Throughput 43.0 3624.6 842.9
File Copy 1024 bufsize 2000 maxblocks 3960.0 453392.1 1144.9
File Copy 256 bufsize 500 maxblocks 1655.0 125918.3 760.8
File Copy 4096 bufsize 8000 maxblocks 5800.0 1111064.5 1915.6
Pipe Throughput 12440.0 1838487.1 1477.9
Pipe-based Context Switching 4000.0 223319.6 558.3
Process Creation 126.0 10257.7 814.1
Shell Scripts (1 concurrent) 42.4 4885.5 1152.2
Shell Scripts (8 concurrent) 6.0 770.6 1284.3
System Call Overhead 15000.0 2806574.8 1871.0
========
System Benchmarks Index Score 1128.2

The UnixBech score of the Bay-Tray Atom server is about 1/5 of a SYS E3 Server

静态网站开发框架Jekyll

Jekyll 是用 Ruby 开发的静态网站框架。

FarBox、Jekyll、Octopress、ghost、marboo、Hexo、Medium、Logdown、prose.io,这些博客程序有什么特点?

https://mos.meituan.com/library/22/how-to-install-jekyll-on-centos6/

https://www.andrewmunsell.com/course/learning-jekyll-by-example/

http://jekyllrb.com/docs/quickstart/

每个人都应该有一个Jekyll博客

将纯文本转化为静态网站和博客

使用jekyll来写博客的一些心得

教你如何用Jekyll 搭建全静态博客

Build A Blog With Jekyll And GitHub Pages

Upgrade/Install ruby 2.1.2 #ubuntu #12.04 #14.04

How To Get Started with Jekyll on an Ubuntu VPS

Creating and Hosting a Personal Site on GitHub

Apache密码管理 和 SSL访问

使用url传递密码,访问网站
http://username:password@example.com/

yum install httpd-tools
/usr/bin/htpasswd

I put .htaccess in /var/www/html

AuthType Basic
AuthName “Restricted Access”
AuthUserFile /usr/local/apache/passwd/wwwpasswd
Require valid-user

mkdir -p /usr/local/apache/passwd
# Create as many usernames as you need.
htpasswd -c /usr/local/apache/passwd/wwwpasswd someusername
htpasswd -c /usr/local/apache/passwd/wwwpasswd someotherusername

Alternatively, the authentication can be added to the bottom of /etc/httpd/conf/httpd.conf as follows.

AuthType Basic
AuthName “Restricted Area”
AuthUserFile /usr/local/apache/passwd/wwwpasswd
Require valid-user

or
If browser http access is only required from certain IP addresses or ranges of addresses.
nano /etc/httpd/conf.d/whitelist.conf

Order Deny,Allow
Deny from all
#
Allow from x.x.x.x
Allow from x.x.x.x x.x.x.x x.x.x.x
Allow from somedomain.com
Allow from x.x
Allow from x.x.x.0/255.255.255.0
#
#See http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html for more examples
#

设置SSL

yum install mod_ssl
mkdir /etc/httpd/ssl
creating the self-signed SSL certificate and the server key that protects it, and placing both of them into the new directory.
openssl req -x509 -nodes -days 730 -newkey rsa:2048 -keyout /etc/httpd/ssl/apache.key -out /etc/httpd/ssl/apache.crt
vi /etc/httpd/conf.d/ssl.conf

Find the following three lines, and make sure that they match the extensions below:

SSLEngine on
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key

/etc/init.d/httpd restart

中国逻辑

易中天先生曾将中国逻辑归为三点:问态度,不问事实;问动机,不问是非;问亲疏,不问道理。
中国逻辑的第一表征,是国情论。即用国情为吾国的一切症结辩护,为一切罪孽洗白。江平先生说,30年前我们批判两个凡是,现在要批判两个谬论:稳定压倒一切,中国情况特殊论。中国自然有其国情、有其特色,这决定了我们不能教条化,不能奉行“拿来主义”。只是,中国的国情与特色,不该成为阻止我们“拿来”真理的借口,用何兆武先生的话讲,倘若真理不合国情,那么需要加以改变的是国情,而非真理,“国情要适合真理,而不是真理要适合国情”。

可惜,对中国逻辑的坚守者而言,这些话始终不大入耳。他们眼中,国情的阴霾,阻断了眺望真理的视线,只能惜取眼前物,国情——如贪腐、专权——即存在,存在即合理。

第二表征,是辩证法。它与第一表征如胶似漆,互为表里。辩证法为国情论提供了论证的工具:哪怕国情再不好,辩证来看,总有好的一面。国情论则为辩证法制造了运行的语境。要言之,辩证法的作用,一是捣糨糊,二是遮羞布。它最大的害处,在于混淆了是非善恶,因为一旦辩证起来,是中有非,非中有是,善中有恶,恶中有善。再如,用辩证法审视官员腐败,虽然违法,却润滑了科层制,提高了办事效率,并不全是坏事呢。

第三表征,是诛心。即易中天所云“问动机,不问是非”——须知心之为心,动机之为动机,恰在于不可测问。当然这不是中国逻辑独有的病症,却在中国流毒尤烈。你批评一位名人,他的粉丝立即上前围攻,质问你什么动机,是不是嫉妒,是不是借机炒作,进而上升到人格问题、立场问题——凡事不论理性论人品,不论事实论立场,结果只能是各执己见,双方之间的裂缝越来越深,达成共识的可能性越来越微弱。

第四表征,是附会。以旧闻为例。据陈伯达秘书缪俊胜回忆,有一次在京西宾馆开会,会议室厕所未标男女,其间陈伯达上厕所,出来碰到江青,江火了:“你怎么上我的厕所?”陈解释,这里并未标示男女。“啊?你今天上我的厕所,明天就会闯我的卧室!”——江青的不讲逻辑或“中国逻辑”,其一是霸道,将会议室厕所的主权纳入自己名下;其二是附会,将厕所与卧室等同,将“上我的厕所”与“闯我的卧室”混为一谈,事实上,厕所与卧室本不相干,“上错厕所”并不必然会导致“上错卧室”,二者之间不能递进,将它们强行牵连在一起,便打乱了逻辑的前提。

第五表征,是混淆。从混淆公私,混淆道德与制度,到混淆是非,混淆善恶。譬如有人因私德不谨,曝光天下,其论敌便谓:依你这德行,假如上台执政,必定是一大贪官、酷吏。这种论断常能蒙蔽一些受众。然而,稍加明辨,当可知贪官和酷吏,与其人的德行并无必然关系,而取决于制度的设计,公权力是否受到了制约。制度不改,谁上台都一样,君子执政,眼便是小人。对道德与制度的混淆,可谓吾国的一大沉疴,导致我们的制度建设,屡入误区而不自知。

G320湘潭绕城线三期工程开工

G320湘潭绕城线项G320湘潭绕城线三期工程开工目是《长株潭核心区交通规划》和《湘潭市城市总体规划》确定的重点项目。

G320湘潭绕城线三期工程是我市第一条市域县际快速道路,也是我市2016年全力推进的重点交通项目。路线走廊总体呈东西走向,起于湘潭市雨湖区栗山塘,向西经楠竹山,下穿韶山高速,继续向西与湘乡至韶山高铁站连接线相接,折向南下穿沪昆高速进入湘乡城区,接红仑大道,终于湘乡市五里桥。道路全长52.529千米。其中雨湖区境内13.874公里;湘潭县境内15.520公里;湘乡市境内23.135公里。
G320-new
项目交由中交三航局具体施工,全线采用一级公路技术标准。项目投资估算28亿元,计划于2016年全面开工建设,2018年建成通车。

湘潭传媒网12月29日讯(记者 彭嫣红 管宏俊)

猪狗人

山顶洞人3个头骨(化石编号分别为PA·101,PA·102,PA·103)分属于老年男性、中年女性和青年女性。头骨硕大,上面部低矮,整个面部中等程度的突出,眼眶较低,梨形孔较阔,其下缘呈鼻前窝形,与现代黄种人相似。山顶洞人生活的时代约为1.1—1.8万多年前,地质时代为晚更新世末﹐据放射性碳素断代﹐年代为距今约3万年。
1930年代,魏敦瑞(Franz Weidenreich)对山顶洞人化石进行了初步的研究和分析,认为三具头骨分别代表了三种不同的现代人群:101号头骨接近“原始蒙古人种”(primitive Mongoloid),102号头骨类似美拉尼西亚人(Melanesoid),103号头骨则属于爱斯基摩人类型(Eskimoid)。山顶洞人的头骨具有一系列与蒙古人种有关的特征,可能代表原始的蒙古人种类型。
驯服狗是旧石器时代到新石器时代的转折点。驯服狗是一大技术发明。把驯服动物技术由此及彼的推广,进而驯服了猪、羊、牛、马等,使得人类文明在亚欧大陆迅速发展。
狗为第一个被人类驯养的动物。
猪是人类驯服的第二种动物