Packaging the Tomcat Source Components
Package source components following the instructions below to prevent data, configuration, and log files outside the installation package from being lost.
The file to be migrated is a complete Tomcat folder, for example, apache-tomcat-x.x.x, where x.x.x indicates the Tomcat version.
Procedure
- Compress the installation directory of the source components to be scanned into a package. The following uses a tar.gz package as an example.
tar cvf apache-tomcat-tmp.tar.gz /home/apache-tomcat-x.x.x
- Replace the example package name apache-tomcat-tmp.tar.gz with the actual one.
- Replace the example source component path /home/apache-tomcat-x.x.x with the actual one.
- Obtain the source components using either of the following methods:
- If you select the Upload source component package option, return to the Add Component Information tab, and click Upload next to Upload source component package to upload the source component package.
- If you select the Obtain from node server option, run the following command to decompress the source component package.
- Log in to the tool through SSH and upload the package to a user-defined directory on Owning Node.
- Go to the directory that stores the package.
cd User-defined_directory
- Decompress the source component package.
tar xvf apache-tomcat-tmp.tar.gz
- After the decompression is complete, you can run the following command to delete the source component package.
rm -f apache-tomcat-tmp.tar.gz
- Set the path to the decompressed file as the source component path.
Parent topic: Preparing Migration Source Components