> cat /proc/sys/fs/file-max
13032310
> cat /proc/sys/fs/file-nr
25696 0 13032310
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait RedisCluster { | |
def connect: Throwable \/ StatefulRedisClusterConnection[String, String] | |
} | |
class RedisClusterWithLettuce(host: String, port: Int) extends RedisCluster { | |
private val client = RedisClusterWithLettuce.build(host, port) | |
def connect: Throwable \/ StatefulRedisClusterConnection[String, String] = { | |
\/.fromTryCatchNonFatal { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
❯ redis-cli -c -h localhost -p 6379 | |
localhost:6379> cluster nodes | |
2f7fd4b118aec5f0d0b10a16006815098ae89e9c 192.168.48.2:6379@16379 myself,master - 0 1604830164000 1 connected 0-5460 | |
10f1bbb2e194af0fd389253742f1cdd312dc0556 192.168.48.2:6384@16384 slave f53b0c7e1fffee2b20e7c8886075f545c50f1e9b 0 1604830165755 6 connected | |
ef35b6133ec1be37e8989ac4c9b3ebecf75cd612 192.168.48.2:6383@16383 slave dbb28f3dd2fa0462e7bac0ee3aef1ef9a59a1ba3 0 1604830167000 5 connected | |
dbb28f3dd2fa0462e7bac0ee3aef1ef9a59a1ba3 192.168.48.2:6380@16380 master - 0 1604830166271 2 connected 5461-10922 | |
f53b0c7e1fffee2b20e7c8886075f545c50f1e9b 192.168.48.2:6381@16381 master - 0 1604830167299 3 connected 10923-16383 | |
eeb51c67dbf497953c1fe30b7ffb7aaeabe0dc27 192.168.48.2:6382@16382 slave 2f7fd4b118aec5f0d0b10a16006815098ae89e9c 0 1604830166000 4 connected | |
``` |
php -v
PHP 5.6.3 (cli) (built: Oct 28 2015 09:47:41)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
But this only changes in CLI. You have to tweak you nginx(same for apache) to make it works. Nginx will still using the native PHP-FPM.
> ps aux | grep php-fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Graphics.Element exposing (Element, show) | |
import Task exposing (Task, andThen) | |
import Json.Decode exposing (Decoder, int, string, object3, (:=), at, keyValuePairs) | |
import Http | |
type alias Languages = | |
List (String, Int) | |
mailbox = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import { scaleOrdinal, schemeCategory20c } from 'd3-scale'; | |
import React from 'react'; | |
module.exports = React.createClass({ | |
displayName: 'BarChart', | |
propTypes: { |
➜ admin git:(master) phpbrew --version
phpbrew - 1.23.1
cliframework core: 2.5.4
➜ admin git:(master) php -v
PHP 5.6.30 (cli) (built: Aug 7 2018 17:48:36)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
➜ admin git:(master) which php
/Users/l-wei/.phpbrew/php/php-5.6.30/bin/php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: application/json'); | |
//$xmlfile = 'xml/EIT_00002_20140507.xml'; | |
function xml2json($file) { | |
if (file_exists($file)) { | |
$xml = simplexml_load_file($file); | |
$date = $xml->EventDate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<button class="btn btn-primary" onClick="render()">Render</button> | |
<button class="btn btn-danger" onClick="unmount()">Unmount</button> | |
</div> | |
<br/><br/> | |
<div class="col-xs-12" id="react"></div> | |
</div> | |
</div> |