Location>code7788 >text

Installation steps of TongLINKQ8.1 server of China Oriental Message Queue

Popularity:511 ℃/2024-10-25 20:15:11
  • groupadd tlq # new group

  • useradd -m -g tlq tlq # Create a new tlq user and specify the group tlq

  • cd /home/tlq/ # Switch to the installation directory and upload the installation package

  • tar -xzvf Install_TLQ_Standard_Linux2.6.32_x86_64_8.1.16. # Uncompress the installation files

  • cd /home/tlq/TLQ8/

  • Setting environment variables

    • cat . /setp >> ~/.bash_profile # Add all the settings in setp to the user environment variable file.

    • vi ~/.bash_profile TLQHOMEDIR=/home/tlq/TLQ8 # Modify TLQHOMEDIR to server home directory

    • source ~/.bash_profile # Configuration file in effect

  • tlq -cstop # Discontinuation of services

  • tlq -cabort # forcible termination of service

  • The ubuntut system opens the port

    • sudo ufw allow 10261/tcp 

  • Open ports on centos system

    • firewall-cmd --zone=public --add-port=10261/tcp --permanent

    • firewall-cmd --reload

    • firewall-cmd --list-port

  • Server-side Send Message Test

    • cd /home/tlq/TLQ8/samples/demo_java/base

    • javac

    • java SendMsg qcu1 lq B no

  • Server-side receive message test

    • cd /home/tlq/TLQ8/samples/demo_java/base

    • javac

    • java GetMsg qcu1 lq 1000