Shellmiao 9279d1873b Add projects | hai 1 ano | |
---|---|---|
.. | ||
doc | hai 1 ano | |
README.md | hai 1 ano | |
README.zh.md | hai 1 ano |
Server Configuration.
Number | 1 |
---|---|
Configuration | 8 core / 16G memory / 500G hard disk |
OS | Version: CentOS Linux release 7 |
User | User: app owner:apps |
The standalone version provides 3 deployment methods, which can be selected according to the actual situation.
Install FATE using Docker image
Install FATE on the host (using the compiled installer)
Install FATE in the host (based on the source code compiled by the package)
It is recommended to use a docker image, which greatly reduces the possibility of encountering problems
Note that the ${version} in the following example, please replace it with the actual version number, refer to fate.env file for the FATE version!
Set the environment variables required for deployment (note that the environment variables set in the following way are only valid for the current terminal session, if you open a new terminal session, such as a new login or a new window, please set them again)
export version={FATE version for this deployment}
example:
export version=1.7.0
# Docker Hub
docker pull federatedai/standalone_fate:${version}
# Tencent Container Registry
docker pull ccr.ccs.tencentyun.com/federatedai/standalone_fate:${version}
docker tag ccr.ccs.tencentyun.com/federatedai/standalone_fate:${version} federatedai/standalone_fate:${version}
wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate/${version}/release/standalone_fate_docker_image_${version}_release.tar.gz
docker load -i standalone_fate_docker_image_${version}_release.tar.gz
docker images | grep federatedai/standalone_fate
If you can see the image corresponding to ${version}, the image is downloaded successfully
docker run -it --name standalone_fate -p 8080:8080 federatedai/standalone_fate:${version};
source bin/init_env.sh
Note that in the following example ${version}, please replace it with the actual version number, refer to fate.env file for the FATE version!
Whether local ports 8080, 9360, 9380 are occupied
netstat -apln|grep 8080;
netstat -apln|grep 9360;
netstat -apln|grep 9380
Because need to install the OS dependencies, need root privileges. You can use the root user for subsequent operations. If you do not use the root user, please use the root user to grant sudo privileges to the user you want to use:
echo "{username to use} ALL=(ALL) NOPASSWD:ALL" | tee /etc/sudoers.d/{username to use}
Download the installation package and unpack it
wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate/${version}/release/standalone_fate_install_${version}_release.tar.gz;
tar -xzvf standalone_fate_install_${version}_release.tar.gz
Go to the unpacked directory and use bin/init.sh
to install
The script will complete automatically:
cd standalone_fate_install_${version}_release;
bash bin/init.sh init
bash bin/init.sh status;
bash bin/init.sh start
source bin/init_env.sh
flow test toy -gid 10000 -hid 10000
If successful, the screen displays a statement similar to the following:
success to calculate secure_sum, it is 2000.0
fate_test unittest federatedml --yes
If successful, the screen displays a statement like the following:
there are 0 failed test
Some use case algorithms are in examples folder, please try using them.
You can also experience the algorithm process kanban through your browser by visiting: http://${ip}:8080, ip is 127.0.0.1
or the actual ip of the local machine
Please refer to standalone fate source code deployment