Linux下 redis fasdtdfs 基础命令

nohup /usr/local/mysql/bin/mysqld_safe --user=root > /dev/null 2>&1 &

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION ; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by 'mysqladmin' WITH GRANT OPTION ; flush privileges ;

生成SSH-KEY:ssh-keygen -t rsa; 先进行本机的免登录配置:cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys。 测试本机登录:ssh root@hadoop-ha-journalnode-*; ssh-copy-id -i ~/.ssh/id_rsa.pub  hadoop-ha-journalnode-*

echo "vm.overcommit_memory=1" >> /etc/sysctl.conf /sbin/sysctl -p

apt-get install ruby ruby-dev rubygems

/usr/local/redis/bin/redis-benchmark -h 192.168.68.175 -p 6379 -c 1000 -d 10 -n 10000

mkdir -p /usr/data/redis/{redis-6379,redis-6380,redis-6381}/{run,logs,dbcache}

/usr/local/redis/bin/redis-cli -h 192.168.68.167 -p 6379 -a mldnjava info replication

/usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6379.conf /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6380.conf /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6381.conf

/usr/local/redis/bin/redis-sentinel /usr/local/redis/conf/sentinel.conf /usr/local/redis/bin/redis-sentinel /usr/local/redis/conf/sentinel-26380.conf /usr/local/redis/bin/redis-sentinel /usr/local/redis/conf/sentinel-26381.conf

/usr/local/redis/bin/redis-cli -h 192.168.68.167 -p 26379 sentinel set redis_master_group1 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh

make TARGET=linux26 PREFIX=/usr/local/haproxy ARCH=x86_64 make install PREFIX=/usr/local/haproxy

/usr/local/redis/bin/redis-cli -h 192.168.68.170 -p 26379 sentinel set redis_master_group1 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh /usr/local/redis/bin/redis-cli -h 192.168.68.170 -p 26379 sentinel set redis_master_group2 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh /usr/local/redis/bin/redis-cli -h 192.168.68.170 -p 26379 sentinel set redis_master_group3 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh

/usr/local/redis/bin/redis-cli -h 192.168.68.171 -p 26379 sentinel set redis_master_group1 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh /usr/local/redis/bin/redis-cli -h 192.168.68.171 -p 26379 sentinel set redis_master_group2 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh /usr/local/redis/bin/redis-cli -h 192.168.68.171 -p 26379 sentinel set redis_master_group3 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh

/usr/local/redis/bin/redis-cli -h 192.168.68.172 -p 26379 sentinel set redis_master_group1 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh /usr/local/redis/bin/redis-cli -h 192.168.68.172 -p 26379 sentinel set redis_master_group2 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh /usr/local/redis/bin/redis-cli -h 192.168.68.172 -p 26379 sentinel set redis_master_group3 client-reconfig-script /usr/local/twemproxy/sh/client-reconfig.sh

/usr/local/twemproxy/sbin/nutcracker -c /usr/local/twemproxy/conf/redis_master.conf -p /usr/local/twemproxy/pid/redis_master.pid -o /usr/local/twemproxy/logs/redis_master.log -d

/usr/local/haproxy/sbin/haproxy -f /usr/local/haproxy/haproxy.cfg

http://192.168.68.173:7777/admin

service keepalived start

/usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6379.conf  /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6380.conf  /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6381.conf  /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6382.conf  /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6383.conf  /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6384.conf  /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6385.conf  /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis-6386.conf 

/usr/local/redis/bin/redis-trib.rb create --replicas 1 192.168.68.175:6379 192.168.68.175:6380 192.168.68.175:6381 192.168.68.175:6382 192.168.68.175:6383 192.168.68.175:6384 192.168.68.175:6385 192.168.68.175:6386

/usr/local/redis/bin/redis-cli -h 192.168.68.175 -p 6380 config set protected-mode yes config set requirepass mldnjava auth mldnjava config set masterauth mldnjava config rewrite shutdown

5、    【fastdfs-tracker】启动tracker服务:/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf; 6、    【fastdfs-storage-a】启动storage服务:/usr/bin/fdfs_storaged /etc/fdfs/storage.conf;

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券