1. Download the installation package
Why is there a winamd Suffix in the STAF3418Beta1-setup-winamd64.exe here, wondering why I checked my computer's properties and showed that I was using an Intel chip? However, it turns out that the availability is true.
2. Installation in Windows
2.1 On windows, double-click the STAF installation package and install it as prompted.
2.2 modify the STAF. cfg file in the STAF installation directory/STAF/bin to configure the trust relationship between machines. Add the IP address of the Linux machine to the config file. As follows:
View plaincopy to clipboardprint?
# Set default local trust
Trust machine local: // local level 5
Trust machine 10.2.5.101 level 5
# Set default local trust
Trust machine local: // local level 5
Trust machine 10.2.5.101 level 5
2.3 restart STAFProc
2.4 run the following command in CMD to confirm that STAF has been correctly installed:
Staf local service list
The following Linux installation has not been confirmed and is temporarily retained
3. Installation in Linux
Note: In some Linux versions, you must first install the C library, otherwise STAF will not start. Refer:
Http://rpm.pbone.net/index.php3/stat/4/idpl/2790009/com/libstdc++-3.4.5-2.i386.rpm.html
In Linux, STAF has two installation modes: Download the bin package directly and download the tar package for installation. Take the installation of the tar package as an example:
3.1. Unzip the installation package:
Tar xzvf STAF331-linux.tar.gz
3.2 decompress the package and a STAF folder appears.
./STAFInst
By default, it will be installed under/usr/local/staf.
3.3 configure the environment variables and add the following code to the. bash_profile file under the username directory for running STAF:
PATH =/usr/local/staf/bin: $ PATH
Export PATH
LD_LIBRARY_PATH =/usr/local/staf/lib
Export LD_LIBRARY_PATH
CLASSPATH =/usr/local/staf/lib/JSTAF. jar:/usr/local/staf/samples/demo/STAFDemo. jar
Export CLASSPATH
STAFCONVDIR =/usr/local/staf/codepage
Export STAFCONVDIR
STAFCODEPAGE = LATIN_1
Export STAFCODEPAGE
Nohup/usr/local/staf/bin/STAFProc>/usr/local/staf/stafproc. out
PATH =/usr/local/staf/bin: $ PATH
Export PATH
LD_LIBRARY_PATH =/usr/local/staf/lib
Export LD_LIBRARY_PATH
CLASSPATH =/usr/local/staf/lib/JSTAF. jar:/usr/local/staf/samples/demo/STAFDemo. jar
Export CLASSPATH
STAFCONVDIR =/usr/local/staf/codepage
Export STAFCONVDIR
STAFCODEPAGE = LATIN_1
Export STAFCODEPAGE
Nohup/usr/local/staf/bin/STAFProc>/usr/local/staf/stafproc. out
3.4 modify the STAF. cfg file under the/usr/local/staf/bin directory of STAF to configure the trust relationship between machines. Add the IP address of the Windows Server to the config file. As follows:
# Set default local trust
Trust machine local: // local level 5
Trust machine 10.2.5.100 level 5
# Set default local trust
Trust machine local: // local level 5
Trust machine 10.2.5.100 level 5
3.5 start STAFProc
/Usr/local/staf/bin/STAFProc &
3.6 confirm that STAF has been correctly installed:
Staf local service list