RocketMQ

郎星汉
2023-12-01
[root@VMCentOS ~]# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (rhel-1.45.1.11.1.el6-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
[root@VMCentOS ~]# rpm -qa | grep java
tzdata-java-2012c-1.el6.noarch
java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64
[root@VMCentOS ~]# rpm -e --nodeps tzdata-java-2012c-1.el6.noarch
[root@VMCentOS ~]# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64

[root@VMCentOS ~]#
[root@VMCentOS ~]# java -versionbash: /usr/bin/java: 没有那个文件或目录
[root@VMCentOS ~]# java -version
bash: /usr/bin/java: is a directory
[root@VMCentOS ~]# vi + /etc/profile
[root@VMCentOS ~]# source /etc/profile
[root@VMCentOS ~]# echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin:/usr/java/jdk1.8.0_25/bin:/usr/java/jdk1.8.0_25/jre/bin
[root@VMCentOS ~]# echo $JAVA_HOME
/usr/java/jdk1.8.0_25
[root@VMCentOS ~]# java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
[root@VMCentOS ~]# source /etc/profile
[root@VMCentOS ~]# echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin:/usr/java/jdk1.8.0_25/bin:/usr/java/jdk1.8.0_25/jre/bin:/usr/java/jdk1.8.0_25/bin:/usr/java/jdk1.8.0_25/jre/bin:/usr/alibaba-rocketmq/bin
[root@VMCentOS ~]# echo $JAVA_HOME
/usr/java/jdk1.8.0_25
[root@VMCentOS ~]# echo $ROCKET_HOME

[root@VMCentOS ~]# echo $ROCKETMQ_HOME
/usr/alibaba-rocketmq
[root@VMCentOS ~]# java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
[root@VMCentOS ~]# cd usr
bash: cd: usr: 没有那个文件或目录
[root@VMCentOS ~]# cd /usr
[root@VMCentOS usr]# cd alibaba-rocketmq
[root@VMCentOS alibaba-rocketmq]# cd bin
[root@VMCentOS bin]# chmod +x mqadmin mqbroker mqfiltersrv mqshutdown mqnamesrv
[root@VMCentOS bin]# nohup mqnamesrv >/var/mqlog/ns.log &
[1] 29637
[root@VMCentOS bin]# bash: /var/mqlog/ns.log: 没有那个文件或目录
nohup mqnamesrv >/var/mqlog/ns.log
bash: /var/mqlog/ns.log: 没有那个文件或目录
[1]+  Exit 1                  nohup mqnamesrv > /var/mqlog/ns.log
[root@VMCentOS bin]# nohup mqnamesrv >/var/mqlog/ns.log
bash: /var/mqlog/ns.log: 没有那个文件或目录
[root@VMCentOS bin]# nohup mqnamesrv >/workspace/mqlog/ns.log
nohup: 忽略输入重定向错误到标准输出端


^C
[root@VMCentOS bin]#
[root@VMCentOS bin]# tail -f /workspace/mqlog/ns.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
The Name Server boot success.




ifconfig
^C
[root@VMCentOS bin]# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:FF:E1:19  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:feff:e119/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:166053 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96354 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:214669008 (204.7 MiB)  TX bytes:5578974 (5.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1200 (1.1 KiB)  TX bytes:1200 (1.1 KiB)

[root@VMCentOS bin]# ping 192.168.1.80
PING 192.168.1.80 (192.168.1.80) 56(84) bytes of data.
64 bytes from 192.168.1.80: icmp_seq=1 ttl=128 time=106 ms
64 bytes from 192.168.1.80: icmp_seq=2 ttl=128 time=0.805 ms
64 bytes from 192.168.1.80: icmp_seq=3 ttl=128 time=0.963 ms
64 bytes from 192.168.1.80: icmp_seq=4 ttl=128 time=0.802 ms
64 bytes from 192.168.1.80: icmp_seq=5 ttl=128 time=0.861 ms
64 bytes from 192.168.1.80: icmp_seq=6 ttl=128 time=1.71 ms
64 bytes from 192.168.1.80: icmp_seq=7 ttl=128 time=0.991 ms
^C
--- 192.168.1.80 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6065ms
rtt min/avg/max/mdev = 0.802/16.132/106.791/37.012 ms
[root@VMCentOS bin]# tail -f /workspace/mqlog/ns.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
The Name Server boot success.
^C
[root@VMCentOS bin]# nohup sh mqnamesrv &
[1] 29717
[root@VMCentOS bin]# nohup: 忽略输入并把输出追加到"nohup.out"
^C
[root@VMCentOS bin]# export NAMESRV_ADDR=10.0.2.15:9876
[root@VMCentOS bin]# tail -f /workspace/mqlog/ns.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
The Name Server boot success.
^C
[root@VMCentOS bin]# export NAMESRV_ADDR=10.0.2.15:9876
[root@VMCentOS bin]# nohup mqbroker >/workspace/mqlog/mq.log
nohup: 忽略输入重定向错误到标准输出端
^C

^C
[root@VMCentOS bin]#
[root@VMCentOS bin]# nohup mqbroker >/workspace/mqlog/mq.log &
[2] 29831
[root@VMCentOS bin]# nohup: 忽略输入重定向错误到标准输出端
^C
[root@VMCentOS bin]# tail -f /workspace/mqlog/ns.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
The Name Server boot success.
^C
[root@VMCentOS bin]# tail -f /workspace/mqlog/mq.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
The broker[VMCentOS, 10.0.2.15:10911] boot success. and name server is 10.0.2.15:9876
^C
[root@VMCentOS bin]# lokkit -p 9876:tcp -p 10911:tcp
[root@VMCentOS bin]#



JAVA_HOME=/usr/java/jdk1.8.0_25
JRE_HOME=/usr/java/jdk1.8.0_25/jre
ROCKETMQ_HOME=/usr/alibaba-rocketmq
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$ROCKETMQ_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME ROCKETMQ_HOME PATH CLASSPATH




 类似资料:

相关阅读

相关问答