Loading TOA module

Last updated: 2020-10-10 11:17:30

Download and decompress the TOA package corresponding to the version of Linux OS on Tencent Cloud:

  1. After decompression is completed, run the cd command to access the decompressed folder and run the module loading command:
    insmod toa.ko
  2. Run the following command to check whether loading is successful:
    lsmod | grep toa
  3. If yes, load the toa.ko file in the startup script (ko file needs to be reloaded if the server is restarted).

If you cannot find an installation package corresponding to your OS version from the list above, please download and compile the source package of the general version for Linux OS. This version supports most Linux distributions such as CentOS 6.9, CentOS 7, and Ubuntu 14.04.

  1. Obtain the source package.
  • Source package for CentOS 7 and above versions
wget "http://thunder-pro-mainland-1258348367.cos.ap-guangzhou.myqcloud.com/gaap-toa%E6%BA%90%E7%A0%81(centos7%E4%BB%A5%E4%B8%8A).zip"
  • Source package for CentOS 7 and previous versions
wget "http://thunder-pro-mainland-1258348367.cos.ap-guangzhou.myqcloud.com/gaap-toa%E6%BA%90%E7%A0%81(centos7%E4%BB%A5%E4%B8%8B).zip"
  1. Compile the file.
    yum install gcc
    yum install kernel-headers
    yum install kernel-devel
  2. Load the toa.ko file.
    tar -zxvf linux_toa.tar.gz
    cd toa
    make
    mv toa.ko /lib/modules/`uname -r`/kernel/net/netfilter/ipvs/toa.ko
    insmod /lib/modules/`uname -r`/kernel/net/netfilter/ipvs/toa.ko

If the compilation error is reported, the error may be caused by the inconsistency between the installed kernel version and the version uname -r displays. In the directory /lib/modules/, check the kernel version actually installed, modify the uname -r in Makefile to the actual kernel version, and compile the file again.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help