X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php83-pecl-redis_5.3.7-5.el8/tests
opt
/
alt
/
tests
/
alt-php83-pecl-redis_5.3.7-5.el8
/
tests
/
ðŸ“
..
📄
RedisArrayTest.php
(19.86 KB)
📄
RedisClusterTest.php
(29.05 KB)
📄
RedisSentinelTest.php
(2.58 KB)
📄
RedisTest.php
(272.24 KB)
📄
TestRedis.php
(3.3 KB)
📄
TestSuite.php
(9.5 KB)
📄
getSessionData.php
(560 B)
📄
make-cluster.sh
(5.06 KB)
📄
mkring.sh
(731 B)
📄
regenerateSessionId.php
(1.8 KB)
📄
startSession.php
(1.02 KB)
Editing: mkring.sh
#!/bin/bash PORTS="6379 6380 6381 6382" REDIS=redis-server function start_node() { P=$1 echo "starting node on port $P"; CONFIG_FILE=`tempfile` cat > $CONFIG_FILE << CONFIG port $P CONFIG $REDIS $CONFIG_FILE > /dev/null 2>/dev/null & sleep 1 rm -f $CONFIG_FILE } function stop_node() { P=$1 PID=$2 redis-cli -h localhost -p $P shutdown kill -9 $PID 2>/dev/null } function stop() { for P in $PORTS; do PID=`lsof -i :$P | tail -1 | cut -f 2 -d " "` if [ "$PID" != "" ]; then stop_node $P $PID fi done } function start() { for P in $PORTS; do start_node $P done } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo "Usage: $0 [start|stop|restart]" ;; esac
Upload File
Create Folder