Install STAF in window7_64

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.