Method 1: Download source code and load the module
1. Download and decompress the TOA package corresponding to the version of Linux OS on Tencent Cloud.
arm64
centos
debian
suse linux
ubuntu
2. After decompression is completed, run the cd
command to access the decompressed folder and run the module loading command:
3. Run the following command to check whether the loading is successful:
4. After it is loaded, load the toa.ko
file in the startup script (the toa.ko
file needs to be reloaded if the server is restarted).
echo "insmod xxxxx /toa.ko" >> /etc/rc.local
5. (Optional) To disable TOA temporarily, run the command rmmod path/module name
.
6. (Optional) If TOA is no longer needed, run the following command to uninstall it.
7. (Optional) Run the following command to check whether the module is uninstalled. If you see the message "TOA unloaded", the uninstallation is successful.
Method 2: Compile and load the module
If there is no installation package provided for your OS version, you can download the source package of the Linux general version and then compile it to obtain an installation package. The following is the example for CentOS.
1. Obtain the source package.
wget "https://thunder-pro-mainland-1258348367.cos.ap-guangzhou.myqcloud.com/gaap-toa.rar"
2. Install the build environment.
yum install gcc
yum install make
yum install kernel-headers kernel-devel –y
3. Decompress the source package.
4. Enter the TOA directory.
5. Compile make.
6. Move and load the module.
mv toa.ko /lib/modules/`uname -r`/kernel/net/netfilter/ipvs/toa.ko
insmod /lib/modules/`uname
¬-r`/kernel/net/netfilter/ipvs/toa.ko
7. Check whether the module is loaded successfully.
Was this page helpful?