Debian 8 のカーネルをアップグレードする方法です。
- Microsoft Windows Server 2012 R2
- Hyper-V
- Debian 8.2 jessie
| Benchmark brainf*ck program | |
| >++[<+++++++++++++>-]<[[>+>+<<-]>[<+>-]++++++++ | |
| [>++++++++<-]>.[-]<<>++++++++++[>++++++++++[>++ | |
| ++++++++[>++++++++++[>++++++++++[>++++++++++[>+ | |
| +++++++++[-]<-]<-]<-]<-]<-]<-]<-]++++++++++. | |
| #Humanize byte size figures | |
| def humanize_bytes(bytesize, precision=2): | |
| abbrevs = ( | |
| (1<<50, 'PB'), | |
| (1<<40, 'TB'), | |
| (1<<30, 'GB'), | |
| (1<<20, 'MB'), | |
| (1<<10, 'kB'), | |
| (1, 'bytes') | |
| ) |
| server { | |
| root /var/www/example.com/static; | |
| server_name example.com; | |
| access_log /var/log/nginx/example.com.access.log; | |
| error_log /var/log/nginx/example.com.error.log; | |
| try_files /maintenance.html @proxy; | |
| location @proxy { | |
| proxy_pass http://127.0.0.1:10001; |