Redis 主从复制
./src/redis-server redis.conf &
./src/redis-cli -p 6379
slaveof 47.97.104.146 6379
其实我一直在你身边
./src/redis-server redis.conf &
./src/redis-cli -p 6379
slaveof 47.97.104.146 6379
SET key value
GET key
SETNX key value
ps -aux | grep redis
ll /proc/1814/cwd
tar -cvf base.tar base/
tar -tf base.tar.gz
tar -tf base.tar.gz
diff t1.txt t2.txt
diff -y t1.txt t2.tx
vimdiff t1.txt t2.txt
find . -name “*.c”
find . -type f
find . -size 0 -ls
软链接:ln -s doc.txt doc.txt.soft
硬链接:ln doc.txt doc.txt.hard
cat test1.sh > test3.sh
cat test1.sh >> test3.sh
Linux uname命令
uname -a
$ touch authorized_keys
$ cat jubaopen_rsa_2048.pub >> authorized_keys
$ chmod 600 authorized_keys