标签:
yum -y install lrzsz
二,安装配置JAVA(必须要SUN的JDK,openJDK是不可以的(openJDK支付加密会报错),目前用的版本是1.7)
yum list installed |grep java yum -y remove java-1.7.0-openjdk*
tar -zxvf jdk-7u79-linux-x64.tar.gz vi /etc/profile
export JAVA_HOME="/opt/jdk1.7.0_79" export PATH="$PATH:$JAVA_HOME/bin" export CLASSPATH=".:$JAVA_HOME/lib"
source /etc/profile
java -version
三,安装配置mysql
yum list installed | grep mysql
yum -y remove mysql-libs.x86_64 #若要完全清空数据,则要删除数据目录 rm -rf /var/lib/mysql/
yum list | grep mysql #或 yum -y list mysql*
yum -y install mysql-server mysql mysql-devel
rpm -qi mysql-server
service mysqld start
service mysqld stop
service mysqld restart
mysql>CREATE USER ‘root‘@‘%‘ IDENTIFIED BY "cookie"; mysql>GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘cookie‘ WITH GRANT OPTION; mysql>flush privileges;
vi /etc/sysconfig/iptables #添加一行 -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #保存后,重启iptables; service iptables restart
vi /etc/my.cnf #修改绑定地址为0.0.0.0,再重启数据库 bind-address=0.0.0.0
tar -zxvf zookeeper.tar.gz
cd zookeeper sh bin/zkServer.sh start
#启动ZK服务: sh bin/zkServer.sh start #查看ZK服务状态: sh bin/zkServer.sh status #停止ZK服务: sh bin/zkServer.sh stop #重启ZK服务: sh bin/zkServer.sh restart #客户端联接: sh bin/zkCli.sh -server 127.0.0.1:2181 #客户端联接之后,可用下面的命令看zookeeper目录 ls /
#解压 unzip dubboadmin.zip
#进入dubboadmin目录并启动 cd /home/dubboadmin sh bin/startup.sh
#在浏览器里输入,第一次进入的时候提示输入帐号密码(root/root) http://192.168.1.99:9999/governance/providers
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm
#安装 yum install redis #查看redis安装项 find / -name *redis* #启动redis服务 redis-server /etc/redis.conf
#redis客户端联接 redis-cli #redis登陆后,查看所有配置 redis 127.0.0.1:6379> config get * #设置密码为cookie redis 127.0.0.1:6379> config set requirepass cookie #验证密码 redis 127.0.0.1:6379> auth cookie
#检查是否有mongo源 yum info mongo-10gen #如果提示没有匹配的源的话,则要手动添加 vi /etc/yum.repos.d/10gen.repo #添加如下配置,并保存 #64-bit系统添加 [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 #32-bit系统添加 [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686 gpgcheck=0 #查看系统位数 uname -a
#安装mongo服务器端 yum -y install mongo-10gen-server #安装mongo客户端 yum -y install mongo-10gen
#修改绑定地址,修改bind_ip=127.0.0.1为bind_ip=0.0.0.0 vi /etc/mongod.conf #启动mongo服务 /usr/bin/mongod -f /etc/mongod.conf #检查mongo服务 /etc/init.d/mongod /etc/init.d/mongod status
#登陆mongo mongo #显示当前库 > show databases; #创建location库 > use location #添加帐号 > db.addUser("root", "cookie") #登陆验证 > db.auth(‘root‘,‘cookie‘)
tar -zxvf alibaba-rocketmq.tar.gz
#进入到rocketmq的bin目录 cd /opt/alibaba-rocketmq/bin #后台启动namesrv nohup ./mqnamesrv >/var/log/ns.log & #启动namesrv的时候报了一个错:Caused by: java.net.UnknownHostException: test: Name or service not known #这是由于在/etc/sysconfig/network中定义了HOSTNAME=test,但是在/etc/hosts中没有映身test的地址,在/etc/hosts中127.0.0.1后面添加上test就可以 vi /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 test #后台启动mqborker,需要先绑定NAMESRV_ADDR的地址 export NAMESRV_ADDR=192.168.1.99:9876 nohup ./mqbroker >/var/log/mq.log & #查看namesrv启动是否成功(成功打印:The Name Server boot success.) tail -f /var/log/ns.log #查看mqborker启动是否成功(成功打印:The broker[test, 192.168.1.99:10911] boot success. and name server is 192.168.1.99:9876) tail -f /var/log/mq.log
#安装所有服务 sh cookie.sh install #安装单个服务,比如pay sh cookie.sh install pay #启动所有服务 sh cookie.sh start #启动单个服务,比如pay sh cookie.sh start pay #关闭所有服务 sh cookie.sh stop #关闭单个服务,比如pay sh cookie.sh stop pay
标签:
原文地址:http://www.cnblogs.com/cookiehu/p/5008638.html