IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!
Remove old nginx incl. nginx-common:
apt-get autoremove --purge nginx nginx-commonMarkdown is a lightweight and easy-to-use syntax for styling all forms of writing on the GitHub platform.
What you will learn:
https://gist.github.com/fengmk2/c598c33548c6ec53915d38a15f309192https://gist.github.com/fengmk2/c598c33548c6ec53915d38a15f309192
[normal](https://gist.github.com/fengmk2/c598c33548c6ec53915d38a15f309192)| [ | |
| { | |
| "name": "home", | |
| "methods": [ | |
| "HEAD", | |
| "GET" | |
| ], | |
| "paramNames": [], | |
| "path": "/", | |
| "regexp": "/^(?:\\/(?=$))?$/", |
https://github.com/zeit/next.js/tree/master/examples/hello-world
| Installer | Time |
|---|---|
| npm | 0m21.958s |
| yarn | 0m22.732s |
| 'use strict'; | |
| const URL = require('url').URL; | |
| const Benchmark = require('benchmark'); | |
| const benchmarks = require('beautify-benchmark'); | |
| const path = require('path'); | |
| function hostname1(host) { | |
| if (!host) return ''; | |
| return host.split(':')[0]; |
| 'use strict'; | |
| var https = require('https'); | |
| var http = require('http'); | |
| var urllib = require('urllib'); | |
| var httpsAgent = new https.Agent({ keepAlive: true }); | |
| var agent = new http.Agent({ keepAlive: true }); | |
| // cnodejs.org => 123.59.77.142 | |
| var url = 'https://123.59.77.142'; |
| npm_config_registry=https://registry.npm.taobao.org enclose-io-compiler node-v6.8.0 npminstall 2.7.0 npminstall | |
| $ cd /var/folders/5h/x4h0t8rs6w300g_wnzbx47km0000gn/T/enclose-io-compiler/npminstall-2.7.0 | |
| $ npm install | |
| npm WARN npminstall-2.7.0 No description | |
| npm WARN npminstall-2.7.0 No repository field. | |
| npm WARN npminstall-2.7.0 No license field. | |
| $ cd /private/tmp/npminstall | |
| Detected binaries: {"npminstall"=>"bin/install.js", "npmuninstall"=>"bin/uninstall.js", "npmupdate"=>"bin/update.js"} | |
| Using npminstall at bin/install.js | |
| $ cd /Library/Ruby/Gems/2.0.0/gems/enclose-io-compiler-0.1.0/vendor/node-v6.8.0 |
| 'use strict'; | |
| const https = require('https'); | |
| const dns = require('dns'); | |
| var req = https.request({ | |
| protocol: 'https:', | |
| host: 'r.cnpmjs.org', | |
| lookup: function foo(host, dnsopts, callback) { | |
| setTimeout(function() { |
| 'use strict'; | |
| const Benchmark = require('benchmark'); | |
| const benchmarks = require('beautify-benchmark'); | |
| const suite = new Benchmark.Suite(); | |
| suite | |
| .add('get header all lower case', function() { | |
| const res = {}; | |
| res['x-frame-options1'] = 'X-Frame-Options1 value'; |