联邦学习FATE框架安装搭建 - CentOS8
联邦学习
FATE (Federated AI Technology Enabler) 是微众银行AI部门发起的开源项目,为联邦学习生态系统提供了可靠的安全计算框架。FATE项目使用多方安全计算 (MPC) 以及同态加密 (HE) 技术构建底层安全计算协议,以此支持不同种类的机器学习的安全计算,包括逻辑回归、基于树的算法、深度学习和迁移学习等。
FATE官方网站:https://fate.fedai.org/
FATE文档:https://fate.readthedocs.io/
安装与配置-Python3.6安装
[root@localhost ~]# yum -y install epel-releaseLast metadata expiration check: 0:09:06 ago on Tue 01 Jun 2021 10:40:09 AM CST.Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Installing:epel-release noarch 8-8.el8 extras 23 kTransaction Summary=============================================================================================================================================================================================Install 1 PackageTotal download size: 23 kInstalled size: 32 kDownloading Packages:epel-release-8-8.el8.noarch.rpm 33 kB/s | 23 kB 00:00---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 17 kB/s | 23 kB 00:01Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : epel-release-8-8.el8.noarch 1/1Running scriptlet: epel-release-8-8.el8.noarch 1/1Verifying : epel-release-8-8.el8.noarch 1/1Installed:epel-release-8-8.el8.noarchComplete![root@localhost ~]# yum -y install python36Extra Packages for Enterprise Linux Modular 8 - x86_64 673 kB/s | 610 kB 00:00Extra Packages for Enterprise Linux 8 - x86_64 6.9 MB/s | 9.4 MB 00:01Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Installing:python36 x86_64 3.6.8-37.module_el8.5.0+771+e5d9a225 appstream 19 kInstalling dependencies:python3-pip noarch 9.0.3-19.el8 appstream 20 kpython3-setuptools noarch 39.2.0-6.el8 baseos 163 kEnabling module streams:python36 3.6Transaction Summary=============================================================================================================================================================================================Install 3 PackagesTotal download size: 201 kInstalled size: 466 kDownloading Packages:(1/3): python3-setuptools-39.2.0-6.el8.noarch.rpm 687 kB/s | 163 kB 00:00(2/3): python3-pip-9.0.3-19.el8.noarch.rpm 47 kB/s | 20 kB 00:00(3/3): python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64.rpm 46 kB/s | 19 kB 00:00---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 151 kB/s | 201 kB 00:01Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : python3-setuptools-39.2.0-6.el8.noarch 1/3Installing : python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64 2/3Running scriptlet: python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64 2/3Installing : python3-pip-9.0.3-19.el8.noarch 3/3Running scriptlet: python3-pip-9.0.3-19.el8.noarch 3/3Verifying : python3-pip-9.0.3-19.el8.noarch 1/3Verifying : python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64 2/3Verifying : python3-setuptools-39.2.0-6.el8.noarch 3/3Installed:python3-pip-9.0.3-19.el8.noarch python3-setuptools-39.2.0-6.el8.noarch python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64Complete![root@localhost ~]#
安装virtualenv 和 virtualenvwrapper
virtualenv 是一个创建隔绝的Python环境的工具。virtualenv创建一个包含所有必要的可执行文件的文件夹,用来使用Python工程所需的包,同时可以使不同应用开发环境独立,环境升级不影响其他应用,也不会影响全局的python环境,它可以防止系统中出现包管理混乱和版本的冲突。
[root@localhost ~]# pip3 install virtualenvWARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.Collecting virtualenvDownloading https://files.pythonhosted.org/packages/03/08/f819421002e85a71d58368f7bffbe0b1921325e0e8ca7857cb5fb0e1f7c1/virtualenv-20.4.7-py2.py3-none-any.whl (7.2MB)100% |████████████████████████████████| 7.2MB 163kB/sCollecting appdirs<2,>=1.4.3 (from virtualenv)Downloading https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whlCollecting importlib-metadata>=0.12; python_version < "3.8" (from virtualenv)Downloading https://files.pythonhosted.org/packages/0b/05/9215a7ea1110477bd85375941327857c6a78beb0fbb9d1c2652e28fd04a0/importlib_metadata-4.4.0-py3-none-any.whlRequirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3.6/site-packages (from virtualenv)Collecting importlib-resources>=1.0; python_version < "3.7" (from virtualenv)Downloading https://files.pythonhosted.org/packages/a4/30/b230b6586bcf6b80752ae42979f3b0da70bbde977d2b73eafd20c693b3db/importlib_resources-5.1.4-py3-none-any.whlCollecting filelock<4,>=3.0.0 (from virtualenv)Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whlCollecting distlib<1,>=0.3.1 (from virtualenv)Downloading https://files.pythonhosted.org/packages/87/26/f6a23dd3e578132cf924e0dd5d4e055af0cd4ab43e2a9f10b7568bfb39d9/distlib-0.3.2-py2.py3-none-any.whl (338kB)100% |████████████████████████████████| 348kB 415kB/sCollecting zipp>=0.5 (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv)Downloading https://files.pythonhosted.org/packages/0f/8c/715c54e9e34c0c4820f616a913a7de3337d0cd79074dd1bed4dd840f16ae/zipp-3.4.1-py3-none-any.whlCollecting typing-extensions>=3.6.4; python_version < "3.8" (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv)Downloading https://files.pythonhosted.org/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whlInstalling collected packages: appdirs, zipp, typing-extensions, importlib-metadata, importlib-resources, filelock, distlib, virtualenvSuccessfully installed appdirs-1.4.4 distlib-0.3.2 filelock-3.0.12 importlib-metadata-4.4.0 importlib-resources-5.1.4 typing-extensions-3.10.0.0 virtualenv-20.4.7 zipp-3.4.1[root@localhost ~]# pip3 install virtualenvwrapperWARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.Collecting virtualenvwrapperDownloading https://files.pythonhosted.org/packages/c1/6b/2f05d73b2d2f2410b48b90d3783a0034c26afa534a4a95ad5f1178d61191/virtualenvwrapper-4.8.4.tar.gz (334kB)100% |████████████████████████████████| 337kB 1.7MB/sRequirement already satisfied: virtualenv in /usr/local/lib/python3.6/site-packages (from virtualenvwrapper)Collecting virtualenv-clone (from virtualenvwrapper)Downloading https://files.pythonhosted.org/packages/83/b8/cd931487d250565392c39409117436d910232c8a3ac09ea2fb62a6c47bff/virtualenv_clone-0.5.4-py2.py3-none-any.whlCollecting stevedore (from virtualenvwrapper)Downloading https://files.pythonhosted.org/packages/d4/49/b602307aeac3df3384ff1fcd05da9c0376c622a6c48bb5325f28ab165b57/stevedore-3.3.0-py3-none-any.whl (49kB)100% |████████████████████████████████| 51kB 8.4MB/sRequirement already satisfied: appdirs<2,>=1.4.3 in /usr/local/lib/python3.6/site-packages (from virtualenv->virtualenvwrapper)Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from virtualenv->virtualenvwrapper)Requirement already satisfied: importlib-resources>=1.0; python_version < "3.7" in /usr/local/lib/python3.6/site-packages (from virtualenv->virtualenvwrapper)Requirement already satisfied: six<2,>=1.9.0 in /usr/lib/python3.6/site-packages (from virtualenv->virtualenvwrapper)Requirement already satisfied: filelock<4,>=3.0.0 in /usr/local/lib/python3.6/site-packages (from virtualenv->virtualenvwrapper)Requirement already satisfied: distlib<1,>=0.3.1 in /usr/local/lib/python3.6/site-packages (from virtualenv->virtualenvwrapper)Collecting pbr!=2.1.0,>=2.0.0 (from stevedore->virtualenvwrapper)Downloading https://files.pythonhosted.org/packages/18/e0/1d4702dd81121d04a477c272d47ee5b6bc970d1a0990b11befa275c55cf2/pbr-5.6.0-py2.py3-none-any.whl (111kB)100% |████████████████████████████████| 112kB 6.8MB/sRequirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv->virtualenvwrapper)Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->virtualenv->virtualenvwrapper)Installing collected packages: virtualenv-clone, pbr, stevedore, virtualenvwrapperRunning setup.py install for virtualenvwrapper ... doneSuccessfully installed pbr-5.6.0 stevedore-3.3.0 virtualenv-clone-0.5.4 virtualenvwrapper-4.8.4[root@localhost ~]#
安装Java1.8
[root@localhost ~]# yum install javaLast metadata expiration check: 0:11:27 ago on Tue 01 Jun 2021 10:49:33 AM CST.Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Installing:java-1.8.0-openjdk x86_64 1:1.8.0.292.b10-2.el8 appstream 336 kInstalling dependencies:alsa-lib x86_64 1.2.4-5.el8 appstream 471 katk x86_64 2.28.1-1.el8 appstream 272 kavahi-libs x86_64 0.7-20.el8 baseos 62 kcairo x86_64 1.15.12-3.el8 appstream 721 kcopy-jdk-configs noarch 3.7-4.el8 appstream 27 kcups-libs x86_64 1:2.2.6-40.el8 baseos 433 kdejavu-fonts-common noarch 2.35-7.el8 baseos 74 kdejavu-sans-fonts noarch 2.35-7.el8 baseos 1.6 Mfontconfig x86_64 2.13.1-3.el8 baseos 275 kfontpackages-filesystem noarch 1.44-22.el8 baseos 16 kfribidi x86_64 1.0.4-8.el8 appstream 89 kgdk-pixbuf2 x86_64 2.36.12-5.el8 baseos 467 kgdk-pixbuf2-modules x86_64 2.36.12-5.el8 appstream 109 kgiflib x86_64 5.1.4-3.el8 appstream 51 kgraphite2 x86_64 1.3.10-10.el8 appstream 122 kgtk-update-icon-cache x86_64 3.22.30-6.el8 appstream 32 kharfbuzz x86_64 1.7.5-3.el8 appstream 295 khicolor-icon-theme noarch 0.17-2.el8 appstream 49 kjasper-libs x86_64 2.0.14-4.el8 appstream 167 kjava-1.8.0-openjdk-headless x86_64 1:1.8.0.292.b10-2.el8 appstream 34 Mjavapackages-filesystem noarch 5.3.0-1.module_el8.0.0+11+5b8c10bd appstream 30 kjbigkit-libs x86_64 2.1-14.el8 appstream 55 klibX11 x86_64 1.6.8-4.el8 appstream 611 klibX11-common noarch 1.6.8-4.el8 appstream 158 klibXau x86_64 1.0.9-3.el8 appstream 37 klibXcomposite x86_64 0.4.4-14.el8 appstream 28 klibXcursor x86_64 1.1.15-3.el8 appstream 36 klibXdamage x86_64 1.1.4-14.el8 appstream 27 klibXext x86_64 1.3.4-1.el8 appstream 45 klibXfixes x86_64 5.0.3-7.el8 appstream 25 klibXft x86_64 2.3.3-1.el8 appstream 67 klibXi x86_64 1.7.10-1.el8 appstream 49 klibXinerama x86_64 1.1.4-1.el8 appstream 16 klibXrandr x86_64 1.5.2-1.el8 appstream 34 klibXrender x86_64 0.9.10-7.el8 appstream 33 klibXtst x86_64 1.2.3-7.el8 appstream 22 klibdatrie x86_64 0.2.9-7.el8 appstream 33 klibfontenc x86_64 1.1.3-8.el8 appstream 37 klibjpeg-turbo x86_64 1.5.3-10.el8 appstream 156 klibthai x86_64 0.1.27-2.el8 appstream 203 klibtiff x86_64 4.0.9-18.el8 appstream 188 klibxcb x86_64 1.13.1-1.el8 appstream 229 klksctp-tools x86_64 1.0.18-3.el8 baseos 100 klua x86_64 5.3.4-11.el8 appstream 193 knspr x86_64 4.25.0-2.el8_2 appstream 142 knss x86_64 3.53.1-17.el8_3 appstream 723 knss-softokn x86_64 3.53.1-17.el8_3 appstream 484 knss-softokn-freebl x86_64 3.53.1-17.el8_3 appstream 376 knss-sysinit x86_64 3.53.1-17.el8_3 appstream 72 knss-util x86_64 3.53.1-17.el8_3 appstream 136 kpango x86_64 1.42.4-6.el8 appstream 298 kpixman x86_64 0.38.4-1.el8 appstream 257 kttmkfdir x86_64 3.0.9-54.el8 appstream 62 ktzdata-java noarch 2021a-1.el8 appstream 192 kxorg-x11-font-utils x86_64 1:7.5-41.el8 appstream 104 kxorg-x11-fonts-Type1 noarch 7.5-19.el8 appstream 522 kInstalling weak dependencies:gtk2 x86_64 2.24.32-5.el8 appstream 3.4 MEnabling module streams:javapackages-runtime 201801Transaction Summary=============================================================================================================================================================================================Install 58 PackagesTotal download size: 48 MInstalled size: 163 MIs this ok [y/N]: yDownloading Packages:(1/58): atk-2.28.1-1.el8.x86_64.rpm 380 kB/s | 272 kB 00:00(2/58): copy-jdk-configs-3.7-4.el8.noarch.rpm 322 kB/s | 27 kB 00:00(3/58): alsa-lib-1.2.4-5.el8.x86_64.rpm 517 kB/s | 471 kB 00:00(4/58): fribidi-1.0.4-8.el8.x86_64.rpm 601 kB/s | 89 kB 00:00(5/58): giflib-5.1.4-3.el8.x86_64.rpm 395 kB/s | 51 kB 00:00(6/58): gdk-pixbuf2-modules-2.36.12-5.el8.x86_64.rpm 618 kB/s | 109 kB 00:00(7/58): cairo-1.15.12-3.el8.x86_64.rpm 660 kB/s | 721 kB 00:01(8/58): gtk-update-icon-cache-3.22.30-6.el8.x86_64.rpm 334 kB/s | 32 kB 00:00(9/58): graphite2-1.3.10-10.el8.x86_64.rpm 809 kB/s | 122 kB 00:00(10/58): hicolor-icon-theme-0.17-2.el8.noarch.rpm 500 kB/s | 49 kB 00:00(11/58): harfbuzz-1.7.5-3.el8.x86_64.rpm 752 kB/s | 295 kB 00:00(12/58): jasper-libs-2.0.14-4.el8.x86_64.rpm 637 kB/s | 167 kB 00:00(13/58): java-1.8.0-openjdk-1.8.0.292.b10-2.el8.x86_64.rpm 664 kB/s | 336 kB 00:00(14/58): javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch.rpm 305 kB/s | 30 kB 00:00(15/58): jbigkit-libs-2.1-14.el8.x86_64.rpm 465 kB/s | 55 kB 00:00(16/58): libX11-1.6.8-4.el8.x86_64.rpm 675 kB/s | 611 kB 00:00(17/58): libX11-common-1.6.8-4.el8.noarch.rpm 539 kB/s | 158 kB 00:00(18/58): libXau-1.0.9-3.el8.x86_64.rpm 308 kB/s | 37 kB 00:00(19/58): libXcomposite-0.4.4-14.el8.x86_64.rpm 286 kB/s | 28 kB 00:00(20/58): libXcursor-1.1.15-3.el8.x86_64.rpm 310 kB/s | 36 kB 00:00(21/58): libXdamage-1.1.4-14.el8.x86_64.rpm 379 kB/s | 27 kB 00:00(22/58): libXext-1.3.4-1.el8.x86_64.rpm 491 kB/s | 45 kB 00:00(23/58): libXfixes-5.0.3-7.el8.x86_64.rpm 363 kB/s | 25 kB 00:00(24/58): libXft-2.3.3-1.el8.x86_64.rpm 523 kB/s | 67 kB 00:00(25/58): libXi-1.7.10-1.el8.x86_64.rpm 474 kB/s | 49 kB 00:00(26/58): libXinerama-1.1.4-1.el8.x86_64.rpm 289 kB/s | 16 kB 00:00(27/58): libXrandr-1.5.2-1.el8.x86_64.rpm 418 kB/s | 34 kB 00:00(28/58): libXrender-0.9.10-7.el8.x86_64.rpm 339 kB/s | 33 kB 00:00(29/58): libXtst-1.2.3-7.el8.x86_64.rpm 338 kB/s | 22 kB 00:00(30/58): libdatrie-0.2.9-7.el8.x86_64.rpm 351 kB/s | 33 kB 00:00(31/58): libfontenc-1.1.3-8.el8.x86_64.rpm 347 kB/s | 37 kB 00:00(32/58): gtk2-2.24.32-5.el8.x86_64.rpm 912 kB/s | 3.4 MB 00:03(33/58): libjpeg-turbo-1.5.3-10.el8.x86_64.rpm 668 kB/s | 156 kB 00:00(34/58): libthai-0.1.27-2.el8.x86_64.rpm 704 kB/s | 203 kB 00:00(35/58): libtiff-4.0.9-18.el8.x86_64.rpm 740 kB/s | 188 kB 00:00(36/58): lua-5.3.4-11.el8.x86_64.rpm 697 kB/s | 193 kB 00:00(37/58): libxcb-1.13.1-1.el8.x86_64.rpm 726 kB/s | 229 kB 00:00(38/58): nspr-4.25.0-2.el8_2.x86_64.rpm 621 kB/s | 142 kB 00:00(39/58): nss-3.53.1-17.el8_3.x86_64.rpm 808 kB/s | 723 kB 00:00(40/58): nss-softokn-3.53.1-17.el8_3.x86_64.rpm 693 kB/s | 484 kB 00:00(41/58): nss-sysinit-3.53.1-17.el8_3.x86_64.rpm 324 kB/s | 72 kB 00:00(42/58): nss-util-3.53.1-17.el8_3.x86_64.rpm 579 kB/s | 136 kB 00:00(43/58): nss-softokn-freebl-3.53.1-17.el8_3.x86_64.rpm 653 kB/s | 376 kB 00:00(44/58): pango-1.42.4-6.el8.x86_64.rpm 726 kB/s | 298 kB 00:00(45/58): pixman-0.38.4-1.el8.x86_64.rpm 692 kB/s | 257 kB 00:00(46/58): ttmkfdir-3.0.9-54.el8.x86_64.rpm 696 kB/s | 62 kB 00:00(47/58): xorg-x11-font-utils-7.5-41.el8.x86_64.rpm 571 kB/s | 104 kB 00:00(48/58): tzdata-java-2021a-1.el8.noarch.rpm 804 kB/s | 192 kB 00:00(49/58): avahi-libs-0.7-20.el8.x86_64.rpm 316 kB/s | 62 kB 00:00(50/58): cups-libs-2.2.6-40.el8.x86_64.rpm 1.5 MB/s | 433 kB 00:00(51/58): xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm 1.0 MB/s | 522 kB 00:00(52/58): dejavu-fonts-common-2.35-7.el8.noarch.rpm 983 kB/s | 74 kB 00:00(53/58): fontconfig-2.13.1-3.el8.x86_64.rpm 1.6 MB/s | 275 kB 00:00(54/58): fontpackages-filesystem-1.44-22.el8.noarch.rpm 295 kB/s | 16 kB 00:00(55/58): gdk-pixbuf2-2.36.12-5.el8.x86_64.rpm 1.8 MB/s | 467 kB 00:00(56/58): lksctp-tools-1.0.18-3.el8.x86_64.rpm 1.3 MB/s | 100 kB 00:00(57/58): dejavu-sans-fonts-2.35-7.el8.noarch.rpm 65 kB/s | 1.6 MB 00:24(58/58): java-1.8.0-openjdk-headless-1.8.0.292.b10-2.el8.x86_64.rpm 1.1 MB/s | 34 MB 00:32---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 1.4 MB/s | 48 MB 00:34Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionRunning scriptlet: copy-jdk-configs-3.7-4.el8.noarch 1/1Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 1/1Preparing : 1/1Installing : nspr-4.25.0-2.el8_2.x86_64 1/58Running scriptlet: nspr-4.25.0-2.el8_2.x86_64 1/58Installing : libjpeg-turbo-1.5.3-10.el8.x86_64 2/58Installing : nss-util-3.53.1-17.el8_3.x86_64 3/58Installing : gdk-pixbuf2-2.36.12-5.el8.x86_64 4/58Running scriptlet: gdk-pixbuf2-2.36.12-5.el8.x86_64 4/58Installing : fontpackages-filesystem-1.44-22.el8.noarch 5/58Installing : dejavu-fonts-common-2.35-7.el8.noarch 6/58Installing : dejavu-sans-fonts-2.35-7.el8.noarch 7/58Installing : fontconfig-2.13.1-3.el8.x86_64 8/58Running scriptlet: fontconfig-2.13.1-3.el8.x86_64 8/58Installing : gtk-update-icon-cache-3.22.30-6.el8.x86_64 9/58Installing : nss-softokn-freebl-3.53.1-17.el8_3.x86_64 10/58Installing : nss-softokn-3.53.1-17.el8_3.x86_64 11/58Installing : nss-3.53.1-17.el8_3.x86_64 12/58Installing : nss-sysinit-3.53.1-17.el8_3.x86_64 13/58Installing : jasper-libs-2.0.14-4.el8.x86_64 14/58Installing : lksctp-tools-1.0.18-3.el8.x86_64 15/58Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64 15/58Installing : avahi-libs-0.7-20.el8.x86_64 16/58Installing : cups-libs-1:2.2.6-40.el8.x86_64 17/58Installing : tzdata-java-2021a-1.el8.noarch 18/58Installing : ttmkfdir-3.0.9-54.el8.x86_64 19/58Installing : pixman-0.38.4-1.el8.x86_64 20/58Installing : lua-5.3.4-11.el8.x86_64 21/58Installing : copy-jdk-configs-3.7-4.el8.noarch 22/58Installing : libfontenc-1.1.3-8.el8.x86_64 23/58Installing : xorg-x11-font-utils-1:7.5-41.el8.x86_64 24/58Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 25/58Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 25/58Installing : libdatrie-0.2.9-7.el8.x86_64 26/58Running scriptlet: libdatrie-0.2.9-7.el8.x86_64 26/58Installing : libthai-0.1.27-2.el8.x86_64 27/58Running scriptlet: libthai-0.1.27-2.el8.x86_64 27/58Installing : libXau-1.0.9-3.el8.x86_64 28/58Installing : libxcb-1.13.1-1.el8.x86_64 29/58Installing : libX11-common-1.6.8-4.el8.noarch 30/58Installing : libX11-1.6.8-4.el8.x86_64 31/58Installing : libXext-1.3.4-1.el8.x86_64 32/58Installing : libXrender-0.9.10-7.el8.x86_64 33/58Installing : libXi-1.7.10-1.el8.x86_64 34/58Installing : libXfixes-5.0.3-7.el8.x86_64 35/58Installing : cairo-1.15.12-3.el8.x86_64 36/58Installing : libXcomposite-0.4.4-14.el8.x86_64 37/58Installing : libXcursor-1.1.15-3.el8.x86_64 38/58Installing : libXdamage-1.1.4-14.el8.x86_64 39/58Installing : libXtst-1.2.3-7.el8.x86_64 40/58Installing : libXft-2.3.3-1.el8.x86_64 41/58Installing : libXrandr-1.5.2-1.el8.x86_64 42/58Installing : libXinerama-1.1.4-1.el8.x86_64 43/58Installing : jbigkit-libs-2.1-14.el8.x86_64 44/58Running scriptlet: jbigkit-libs-2.1-14.el8.x86_64 44/58Installing : libtiff-4.0.9-18.el8.x86_64 45/58Installing : gdk-pixbuf2-modules-2.36.12-5.el8.x86_64 46/58Installing : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 47/58Installing : java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 48/58Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 48/58Installing : hicolor-icon-theme-0.17-2.el8.noarch 49/58Installing : graphite2-1.3.10-10.el8.x86_64 50/58Installing : harfbuzz-1.7.5-3.el8.x86_64 51/58Running scriptlet: harfbuzz-1.7.5-3.el8.x86_64 51/58Installing : giflib-5.1.4-3.el8.x86_64 52/58Installing : fribidi-1.0.4-8.el8.x86_64 53/58Installing : pango-1.42.4-6.el8.x86_64 54/58Running scriptlet: pango-1.42.4-6.el8.x86_64 54/58Installing : atk-2.28.1-1.el8.x86_64 55/58Installing : gtk2-2.24.32-5.el8.x86_64 56/58Running scriptlet: gtk2-2.24.32-5.el8.x86_64 56/58Installing : alsa-lib-1.2.4-5.el8.x86_64 57/58Running scriptlet: alsa-lib-1.2.4-5.el8.x86_64 57/58Installing : java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 58/58Running scriptlet: java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 58/58Running scriptlet: nss-3.53.1-17.el8_3.x86_64 58/58Running scriptlet: copy-jdk-configs-3.7-4.el8.noarch 58/58Running scriptlet: java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 58/58Running scriptlet: gdk-pixbuf2-2.36.12-5.el8.x86_64 58/58Running scriptlet: fontconfig-2.13.1-3.el8.x86_64 58/58Running scriptlet: hicolor-icon-theme-0.17-2.el8.noarch 58/58Verifying : alsa-lib-1.2.4-5.el8.x86_64 1/58Verifying : atk-2.28.1-1.el8.x86_64 2/58Verifying : cairo-1.15.12-3.el8.x86_64 3/58Verifying : copy-jdk-configs-3.7-4.el8.noarch 4/58Verifying : fribidi-1.0.4-8.el8.x86_64 5/58Verifying : gdk-pixbuf2-modules-2.36.12-5.el8.x86_64 6/58Verifying : giflib-5.1.4-3.el8.x86_64 7/58Verifying : graphite2-1.3.10-10.el8.x86_64 8/58Verifying : gtk-update-icon-cache-3.22.30-6.el8.x86_64 9/58Verifying : gtk2-2.24.32-5.el8.x86_64 10/58Verifying : harfbuzz-1.7.5-3.el8.x86_64 11/58Verifying : hicolor-icon-theme-0.17-2.el8.noarch 12/58Verifying : jasper-libs-2.0.14-4.el8.x86_64 13/58Verifying : java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 14/58Verifying : java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 15/58Verifying : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 16/58Verifying : jbigkit-libs-2.1-14.el8.x86_64 17/58Verifying : libX11-1.6.8-4.el8.x86_64 18/58Verifying : libX11-common-1.6.8-4.el8.noarch 19/58Verifying : libXau-1.0.9-3.el8.x86_64 20/58Verifying : libXcomposite-0.4.4-14.el8.x86_64 21/58Verifying : libXcursor-1.1.15-3.el8.x86_64 22/58Verifying : libXdamage-1.1.4-14.el8.x86_64 23/58Verifying : libXext-1.3.4-1.el8.x86_64 24/58Verifying : libXfixes-5.0.3-7.el8.x86_64 25/58Verifying : libXft-2.3.3-1.el8.x86_64 26/58Verifying : libXi-1.7.10-1.el8.x86_64 27/58Verifying : libXinerama-1.1.4-1.el8.x86_64 28/58Verifying : libXrandr-1.5.2-1.el8.x86_64 29/58Verifying : libXrender-0.9.10-7.el8.x86_64 30/58Verifying : libXtst-1.2.3-7.el8.x86_64 31/58Verifying : libdatrie-0.2.9-7.el8.x86_64 32/58Verifying : libfontenc-1.1.3-8.el8.x86_64 33/58Verifying : libjpeg-turbo-1.5.3-10.el8.x86_64 34/58Verifying : libthai-0.1.27-2.el8.x86_64 35/58Verifying : libtiff-4.0.9-18.el8.x86_64 36/58Verifying : libxcb-1.13.1-1.el8.x86_64 37/58Verifying : lua-5.3.4-11.el8.x86_64 38/58Verifying : nspr-4.25.0-2.el8_2.x86_64 39/58Verifying : nss-3.53.1-17.el8_3.x86_64 40/58Verifying : nss-softokn-3.53.1-17.el8_3.x86_64 41/58Verifying : nss-softokn-freebl-3.53.1-17.el8_3.x86_64 42/58Verifying : nss-sysinit-3.53.1-17.el8_3.x86_64 43/58Verifying : nss-util-3.53.1-17.el8_3.x86_64 44/58Verifying : pango-1.42.4-6.el8.x86_64 45/58Verifying : pixman-0.38.4-1.el8.x86_64 46/58Verifying : ttmkfdir-3.0.9-54.el8.x86_64 47/58Verifying : tzdata-java-2021a-1.el8.noarch 48/58Verifying : xorg-x11-font-utils-1:7.5-41.el8.x86_64 49/58Verifying : xorg-x11-fonts-Type1-7.5-19.el8.noarch 50/58Verifying : avahi-libs-0.7-20.el8.x86_64 51/58Verifying : cups-libs-1:2.2.6-40.el8.x86_64 52/58Verifying : dejavu-fonts-common-2.35-7.el8.noarch 53/58Verifying : dejavu-sans-fonts-2.35-7.el8.noarch 54/58Verifying : fontconfig-2.13.1-3.el8.x86_64 55/58Verifying : fontpackages-filesystem-1.44-22.el8.noarch 56/58Verifying : gdk-pixbuf2-2.36.12-5.el8.x86_64 57/58Verifying : lksctp-tools-1.0.18-3.el8.x86_64 58/58Installed:alsa-lib-1.2.4-5.el8.x86_64 atk-2.28.1-1.el8.x86_64 avahi-libs-0.7-20.el8.x86_64cairo-1.15.12-3.el8.x86_64 copy-jdk-configs-3.7-4.el8.noarch cups-libs-1:2.2.6-40.el8.x86_64dejavu-fonts-common-2.35-7.el8.noarch dejavu-sans-fonts-2.35-7.el8.noarch fontconfig-2.13.1-3.el8.x86_64fontpackages-filesystem-1.44-22.el8.noarch fribidi-1.0.4-8.el8.x86_64 gdk-pixbuf2-2.36.12-5.el8.x86_64gdk-pixbuf2-modules-2.36.12-5.el8.x86_64 giflib-5.1.4-3.el8.x86_64 graphite2-1.3.10-10.el8.x86_64gtk-update-icon-cache-3.22.30-6.el8.x86_64 gtk2-2.24.32-5.el8.x86_64 harfbuzz-1.7.5-3.el8.x86_64hicolor-icon-theme-0.17-2.el8.noarch jasper-libs-2.0.14-4.el8.x86_64 java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch jbigkit-libs-2.1-14.el8.x86_64libX11-1.6.8-4.el8.x86_64 libX11-common-1.6.8-4.el8.noarch libXau-1.0.9-3.el8.x86_64libXcomposite-0.4.4-14.el8.x86_64 libXcursor-1.1.15-3.el8.x86_64 libXdamage-1.1.4-14.el8.x86_64libXext-1.3.4-1.el8.x86_64 libXfixes-5.0.3-7.el8.x86_64 libXft-2.3.3-1.el8.x86_64libXi-1.7.10-1.el8.x86_64 libXinerama-1.1.4-1.el8.x86_64 libXrandr-1.5.2-1.el8.x86_64libXrender-0.9.10-7.el8.x86_64 libXtst-1.2.3-7.el8.x86_64 libdatrie-0.2.9-7.el8.x86_64libfontenc-1.1.3-8.el8.x86_64 libjpeg-turbo-1.5.3-10.el8.x86_64 libthai-0.1.27-2.el8.x86_64libtiff-4.0.9-18.el8.x86_64 libxcb-1.13.1-1.el8.x86_64 lksctp-tools-1.0.18-3.el8.x86_64lua-5.3.4-11.el8.x86_64 nspr-4.25.0-2.el8_2.x86_64 nss-3.53.1-17.el8_3.x86_64nss-softokn-3.53.1-17.el8_3.x86_64 nss-softokn-freebl-3.53.1-17.el8_3.x86_64 nss-sysinit-3.53.1-17.el8_3.x86_64nss-util-3.53.1-17.el8_3.x86_64 pango-1.42.4-6.el8.x86_64 pixman-0.38.4-1.el8.x86_64ttmkfdir-3.0.9-54.el8.x86_64 tzdata-java-2021a-1.el8.noarch xorg-x11-font-utils-1:7.5-41.el8.x86_64xorg-x11-fonts-Type1-7.5-19.el8.noarchComplete![root@localhost ~]#
验证
[root@localhost ~]# java -versionopenjdk version "1.8.0_292"OpenJDK Runtime Environment (build 1.8.0_292-b10)OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)[root@localhost ~]#
MySQL安装
[root@localhost ~]# yum install wgetLast metadata expiration check: 0:15:39 ago on Tue 01 Jun 2021 10:49:33 AM CST.Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Installing:wget x86_64 1.19.5-10.el8 appstream 734 kTransaction Summary=============================================================================================================================================================================================Install 1 PackageTotal download size: 734 kInstalled size: 2.8 MIs this ok [y/N]: yDownloading Packages:wget-1.19.5-10.el8.x86_64.rpm 1.3 MB/s | 734 kB 00:00---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 571 kB/s | 734 kB 00:01Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : wget-1.19.5-10.el8.x86_64 1/1Running scriptlet: wget-1.19.5-10.el8.x86_64 1/1Verifying : wget-1.19.5-10.el8.x86_64 1/1Installed:wget-1.19.5-10.el8.x86_64Complete![root@localhost ~]# wget https://repo.mysql.com//mysql80-community-release-el8-1.noarch.rpm--2021-06-01 11:05:17-- https://repo.mysql.com//mysql80-community-release-el8-1.noarch.rpmResolving repo.mysql.com (repo.mysql.com)... 23.204.250.61Connecting to repo.mysql.com (repo.mysql.com)|23.204.250.61|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 30388 (30K) [application/x-redhat-package-manager]Saving to: ‘mysql80-community-release-el8-1.noarch.rpm’mysql80-community-release-el8-1.noarch.rpm 100%[====================================================================================================>] 29.68K 161KB/s in 0.2s2021-06-01 11:05:18 (161 KB/s) - ‘mysql80-community-release-el8-1.noarch.rpm’ saved [30388/30388][root@localhost ~]#[root@localhost ~]#[root@localhost ~]# yum install mysql80-community-release-el8-1.noarch.rpmLast metadata expiration check: 0:15:55 ago on Tue 01 Jun 2021 10:49:33 AM CST.Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Installing:mysql80-community-release noarch el8-1 @commandline 30 kTransaction Summary=============================================================================================================================================================================================Install 1 PackageTotal size: 30 kInstalled size: 29 kIs this ok [y/N]: yDownloading Packages:Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : mysql80-community-release-el8-1.noarch 1/1Verifying : mysql80-community-release-el8-1.noarch 1/1Installed:mysql80-community-release-el8-1.noarchComplete![root@localhost ~]# yum updateMySQL 8.0 Community Server 1.0 MB/s | 1.7 MB 00:01MySQL Connectors Community 65 kB/s | 62 kB 00:00MySQL Tools Community 217 kB/s | 271 kB 00:01Last metadata expiration check: 0:00:01 ago on Tue 01 Jun 2021 11:05:37 AM CST.Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Upgrading:epel-release noarch 8-10.el8 epel 22 kTransaction Summary=============================================================================================================================================================================================Upgrade 1 PackageTotal download size: 22 kIs this ok [y/N]: yDownloading Packages:epel-release-8-10.el8.noarch.rpm 145 kB/s | 22 kB 00:00---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 40 kB/s | 22 kB 00:00warning: /var/cache/dnf/epel-6519ee669354a484/packages/epel-release-8-10.el8.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEYExtra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00Importing GPG key 0x2F86D6A1:Userid : "Fedora EPEL (8) <[email protected]>"Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8Is this ok [y/N]: yKey imported successfullyRunning transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Running scriptlet: epel-release-8-10.el8.noarch 1/1Upgrading : epel-release-8-10.el8.noarch 1/2Cleanup : epel-release-8-8.el8.noarch 2/2Running scriptlet: epel-release-8-8.el8.noarch 2/2Verifying : epel-release-8-10.el8.noarch 1/2Verifying : epel-release-8-8.el8.noarch 2/2Upgraded:epel-release-8-10.el8.noarchComplete![root@localhost ~]# yum repolist enabled | grep "mysql.*-community.*"mysql-connectors-community MySQL Connectors Communitymysql-tools-community MySQL Tools Communitymysql80-community MySQL 8.0 Community Server[root@localhost ~]#
禁用mysql模块
(仅限 EL8 系统)基于 EL8 的系统(例如 RHEL8 和 Oracle Linux 8)包含一个默认启用的 MySQL 模块。除非禁用此模块,否则它会屏蔽 MySQL 存储库提供的包。要禁用包含的模块并使 MySQL 存储库包可见,请使用以下命令(对于启用 dnf 的系统,将命令中的yum替换 为 dnf)
[]MySQL 8.0 Community Server 8.0 kB/s | 2.6 kB 00:00MySQL Connectors Community 8.0 kB/s | 2.6 kB 00:00MySQL Tools Community 8.0 kB/s | 2.6 kB 00:00MySQL Tools Preview 7.6 kB/s | 2.4 kB 00:00MySQL Cluster 8.0 Community 7.9 kB/s | 2.6 kB 00:00Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Disabling modules:mysqlTransaction Summary=============================================================================================================================================================================================Is this ok [y/N]: yComplete![]
安装mysql-community-server
[root@localhost ~]# yum install mysql-community-serverLast metadata expiration check: 0:00:08 ago on Tue 01 Jun 2021 11:28:46 AM CST.Dependencies resolved.=============================================================================================================================================================================================Package Architecture Version Repository Size=============================================================================================================================================================================================Installing:mysql-community-server x86_64 8.0.25-1.el8 mysql80-community 53 MInstalling dependencies:mysql-community-client x86_64 8.0.25-1.el8 mysql80-community 13 Mmysql-community-client-plugins x86_64 8.0.25-1.el8 mysql80-community 98 kmysql-community-common x86_64 8.0.25-1.el8 mysql80-community 618 kmysql-community-libs x86_64 8.0.25-1.el8 mysql80-community 1.4 Mnet-tools x86_64 2.0-0.52.20160912git.el8 baseos 322 kperl-Carp noarch 1.42-396.el8 baseos 30 kperl-Data-Dumper x86_64 2.167-399.el8 baseos 58 kperl-Digest noarch 1.17-395.el8 appstream 27 kperl-Digest-MD5 x86_64 2.55-396.el8 appstream 37 kperl-Encode x86_64 4:2.97-3.el8 baseos 1.5 Mperl-Errno x86_64 1.28-419.el8 baseos 76 kperl-Exporter noarch 5.72-396.el8 baseos 34 kperl-File-Path noarch 2.15-2.el8 baseos 38 kperl-File-Temp noarch 0.230.600-1.el8 baseos 63 kperl-Getopt-Long noarch 1:2.50-4.el8 baseos 63 kperl-HTTP-Tiny noarch 0.074-1.el8 baseos 58 kperl-IO x86_64 1.38-419.el8 baseos 142 kperl-MIME-Base64 x86_64 3.15-396.el8 baseos 31 kperl-Net-SSLeay x86_64 1.88-1.module_el8.4.0+517+be1595ff appstream 379 kperl-PathTools x86_64 3.74-1.el8 baseos 90 kperl-Pod-Escapes noarch 1:1.07-395.el8 baseos 20 kperl-Pod-Perldoc noarch 3.28-396.el8 baseos 86 kperl-Pod-Simple noarch 1:3.35-395.el8 baseos 213 kperl-Pod-Usage noarch 4:1.69-395.el8 baseos 34 kperl-Scalar-List-Utils x86_64 3:1.49-2.el8 baseos 68 kperl-Socket x86_64 4:2.027-3.el8 baseos 59 kperl-Storable x86_64 1:3.11-3.el8 baseos 98 kperl-Term-ANSIColor noarch 4.06-396.el8 baseos 46 kperl-Term-Cap noarch 1.17-395.el8 baseos 23 kperl-Text-ParseWords noarch 3.30-395.el8 baseos 18 kperl-Text-Tabs+Wrap noarch 2013.0523-395.el8 baseos 24 kperl-Time-Local noarch 1:1.280-1.el8 baseos 34 kperl-URI noarch 1.73-3.el8 appstream 116 kperl-Unicode-Normalize x86_64 1.25-396.el8 baseos 82 kperl-constant noarch 1.33-396.el8 baseos 25 kperl-interpreter x86_64 4:5.26.3-419.el8 baseos 6.3 Mperl-libnet noarch 3.11-3.el8 appstream 121 kperl-libs x86_64 4:5.26.3-419.el8 baseos 1.6 Mperl-macros x86_64 4:5.26.3-419.el8 baseos 72 kperl-parent noarch 1:0.237-1.el8 baseos 20 kperl-podlators noarch 4.11-1.el8 baseos 118 kperl-threads x86_64 1:2.21-2.el8 baseos 61 kperl-threads-shared x86_64 1.58-2.el8 baseos 48 kInstalling weak dependencies:perl-IO-Socket-IP noarch 0.39-5.el8 appstream 47 kperl-IO-Socket-SSL noarch 2.066-4.module_el8.4.0+517+be1595ff appstream 298 kperl-Mozilla-CA noarch 20160104-7.module_el8.3.0+416+dee7bcef appstream 15 kEnabling module streams:perl 5.26perl-IO-Socket-SSL 2.066perl-libwww-perl 6.34Transaction Summary=============================================================================================================================================================================================Install 47 PackagesTotal download size: 81 MInstalled size: 361 MIs this ok [y/N]: yDownloading Packages:(1/47): perl-Digest-MD5-2.55-396.el8.x86_64.rpm 106 kB/s | 37 kB 00:00(2/47): perl-Digest-1.17-395.el8.noarch.rpm 74 kB/s | 27 kB 00:00(3/47): perl-IO-Socket-IP-0.39-5.el8.noarch.rpm 118 kB/s | 47 kB 00:00(4/47): perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch.rpm 292 kB/s | 15 kB 00:00(5/47): perl-URI-1.73-3.el8.noarch.rpm 641 kB/s | 116 kB 00:00(6/47): perl-IO-Socket-SSL-2.066-4.module_el8.4.0+517+be1595ff.noarch.rpm 772 kB/s | 298 kB 00:00(7/47): perl-libnet-3.11-3.el8.noarch.rpm 696 kB/s | 121 kB 00:00(8/47): perl-Net-SSLeay-1.88-1.module_el8.4.0+517+be1595ff.x86_64.rpm 878 kB/s | 379 kB 00:00(9/47): perl-Carp-1.42-396.el8.noarch.rpm 235 kB/s | 30 kB 00:00(10/47): net-tools-2.0-0.52.20160912git.el8.x86_64.rpm 1.2 MB/s | 322 kB 00:00(11/47): perl-Errno-1.28-419.el8.x86_64.rpm 1.5 MB/s | 76 kB 00:00(12/47): perl-Data-Dumper-2.167-399.el8.x86_64.rpm 264 kB/s | 58 kB 00:00(13/47): perl-Exporter-5.72-396.el8.noarch.rpm 532 kB/s | 34 kB 00:00(14/47): perl-File-Path-2.15-2.el8.noarch.rpm 356 kB/s | 38 kB 00:00(15/47): perl-File-Temp-0.230.600-1.el8.noarch.rpm 1.3 MB/s | 63 kB 00:00(16/47): perl-HTTP-Tiny-0.074-1.el8.noarch.rpm 736 kB/s | 58 kB 00:00(17/47): perl-Getopt-Long-2.50-4.el8.noarch.rpm 479 kB/s | 63 kB 00:00(18/47): perl-IO-1.38-419.el8.x86_64.rpm 2.7 MB/s | 142 kB 00:00(19/47): perl-PathTools-3.74-1.el8.x86_64.rpm 1.3 MB/s | 90 kB 00:00(20/47): perl-Encode-2.97-3.el8.x86_64.rpm 3.0 MB/s | 1.5 MB 00:00(21/47): perl-MIME-Base64-3.15-396.el8.x86_64.rpm 305 kB/s | 31 kB 00:00(22/47): perl-Pod-Escapes-1.07-395.el8.noarch.rpm 500 kB/s | 20 kB 00:00(23/47): perl-Pod-Perldoc-3.28-396.el8.noarch.rpm 1.4 MB/s | 86 kB 00:00(24/47): perl-Pod-Usage-1.69-395.el8.noarch.rpm 430 kB/s | 34 kB 00:00(25/47): perl-Scalar-List-Utils-1.49-2.el8.x86_64.rpm 1.3 MB/s | 68 kB 00:00(26/47): perl-Socket-2.027-3.el8.x86_64.rpm 1.2 MB/s | 59 kB 00:00(27/47): perl-Storable-3.11-3.el8.x86_64.rpm 2.0 MB/s | 98 kB 00:00(28/47): perl-Term-ANSIColor-4.06-396.el8.noarch.rpm 938 kB/s | 46 kB 00:00(29/47): perl-Term-Cap-1.17-395.el8.noarch.rpm 450 kB/s | 23 kB 00:00(30/47): perl-Text-ParseWords-3.30-395.el8.noarch.rpm 379 kB/s | 18 kB 00:00(31/47): perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch.rpm 481 kB/s | 24 kB 00:00(32/47): perl-Time-Local-1.280-1.el8.noarch.rpm 627 kB/s | 34 kB 00:00(33/47): perl-constant-1.33-396.el8.noarch.rpm 505 kB/s | 25 kB 00:00(34/47): perl-Unicode-Normalize-1.25-396.el8.x86_64.rpm 1.0 MB/s | 82 kB 00:00(35/47): perl-Pod-Simple-3.35-395.el8.noarch.rpm 539 kB/s | 213 kB 00:00(36/47): perl-libs-5.26.3-419.el8.x86_64.rpm 9.2 MB/s | 1.6 MB 00:00(37/47): perl-macros-5.26.3-419.el8.x86_64.rpm 506 kB/s | 72 kB 00:00(38/47): perl-parent-0.237-1.el8.noarch.rpm 528 kB/s | 20 kB 00:00(39/47): perl-threads-2.21-2.el8.x86_64.rpm 1.2 MB/s | 61 kB 00:00(40/47): perl-threads-shared-1.58-2.el8.x86_64.rpm 1.2 MB/s | 48 kB 00:00(41/47): perl-interpreter-5.26.3-419.el8.x86_64.rpm 19 MB/s | 6.3 MB 00:00(42/47): perl-podlators-4.11-1.el8.noarch.rpm 597 kB/s | 118 kB 00:00(43/47): mysql-community-client-plugins-8.0.25-1.el8.x86_64.rpm 141 kB/s | 98 kB 00:00(44/47): mysql-community-common-8.0.25-1.el8.x86_64.rpm 548 kB/s | 618 kB 00:01(45/47): mysql-community-libs-8.0.25-1.el8.x86_64.rpm 1.8 MB/s | 1.4 MB 00:00(46/47): mysql-community-client-8.0.25-1.el8.x86_64.rpm 6.3 MB/s | 13 MB 00:02(47/47): mysql-community-server-8.0.25-1.el8.x86_64.rpm 14 MB/s | 53 MB 00:03---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 10 MB/s | 81 MB 00:08warning: /var/cache/dnf/mysql80-community-b1f1ed5ba88ce0f8/packages/mysql-community-client-8.0.25-1.el8.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYMySQL 8.0 Community Server 27 MB/s | 27 kB 00:00Importing GPG key 0x5072E1F5:Userid : "MySQL Release Engineering <[email protected]>"Fingerprint: A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysqlIs this ok [y/N]: yKey imported successfullyRunning transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : mysql-community-common-8.0.25-1.el8.x86_64 1/47Installing : mysql-community-client-plugins-8.0.25-1.el8.x86_64 2/47Installing : mysql-community-libs-8.0.25-1.el8.x86_64 3/47Running scriptlet: mysql-community-libs-8.0.25-1.el8.x86_64 3/47Installing : mysql-community-client-8.0.25-1.el8.x86_64 4/47Installing : perl-Digest-1.17-395.el8.noarch 5/47Installing : perl-Digest-MD5-2.55-396.el8.x86_64 6/47Installing : perl-Data-Dumper-2.167-399.el8.x86_64 7/47Installing : perl-libnet-3.11-3.el8.noarch 8/47Installing : perl-Net-SSLeay-1.88-1.module_el8.4.0+517+be1595ff.x86_64 9/47Installing : perl-URI-1.73-3.el8.noarch 10/47Installing : perl-Pod-Escapes-1:1.07-395.el8.noarch 11/47Installing : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch 12/47Installing : perl-IO-Socket-IP-0.39-5.el8.noarch 13/47Installing : perl-Time-Local-1:1.280-1.el8.noarch 14/47Installing : perl-IO-Socket-SSL-2.066-4.module_el8.4.0+517+be1595ff.noarch 15/47Installing : perl-Term-ANSIColor-4.06-396.el8.noarch 16/47Installing : perl-Term-Cap-1.17-395.el8.noarch 17/47Installing : perl-File-Temp-0.230.600-1.el8.noarch 18/47Installing : perl-Pod-Simple-1:3.35-395.el8.noarch 19/47Installing : perl-HTTP-Tiny-0.074-1.el8.noarch 20/47Installing : perl-podlators-4.11-1.el8.noarch 21/47Installing : perl-Pod-Perldoc-3.28-396.el8.noarch 22/47Installing : perl-Text-ParseWords-3.30-395.el8.noarch 23/47Installing : perl-Pod-Usage-4:1.69-395.el8.noarch 24/47Installing : perl-MIME-Base64-3.15-396.el8.x86_64 25/47Installing : perl-Storable-1:3.11-3.el8.x86_64 26/47Installing : perl-Getopt-Long-1:2.50-4.el8.noarch 27/47Installing : perl-Errno-1.28-419.el8.x86_64 28/47Installing : perl-Socket-4:2.027-3.el8.x86_64 29/47Installing : perl-Encode-4:2.97-3.el8.x86_64 30/47Installing : perl-Carp-1.42-396.el8.noarch 31/47Installing : perl-Exporter-5.72-396.el8.noarch 32/47Installing : perl-libs-4:5.26.3-419.el8.x86_64 33/47Installing : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 34/47Installing : perl-parent-1:0.237-1.el8.noarch 35/47Installing : perl-macros-4:5.26.3-419.el8.x86_64 36/47Installing : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 37/47Installing : perl-Unicode-Normalize-1.25-396.el8.x86_64 38/47Installing : perl-File-Path-2.15-2.el8.noarch 39/47Installing : perl-IO-1.38-419.el8.x86_64 40/47Installing : perl-PathTools-3.74-1.el8.x86_64 41/47Installing : perl-constant-1.33-396.el8.noarch 42/47Installing : perl-threads-1:2.21-2.el8.x86_64 43/47Installing : perl-threads-shared-1.58-2.el8.x86_64 44/47Installing : perl-interpreter-4:5.26.3-419.el8.x86_64 45/47Installing : net-tools-2.0-0.52.20160912git.el8.x86_64 46/47Running scriptlet: net-tools-2.0-0.52.20160912git.el8.x86_64 46/47Running scriptlet: mysql-community-server-8.0.25-1.el8.x86_64 47/47Installing : mysql-community-server-8.0.25-1.el8.x86_64 47/47Running scriptlet: mysql-community-server-8.0.25-1.el8.x86_64 47/47[/usr/lib/tmpfiles.d/mysql.conf:23] Line references path below legacy directory /var/run/, updating /var/run/mysqld → /run/mysqld; please update the tmpfiles.d/ drop-in file accordingly.Verifying : perl-Digest-1.17-395.el8.noarch 1/47Verifying : perl-Digest-MD5-2.55-396.el8.x86_64 2/47Verifying : perl-IO-Socket-IP-0.39-5.el8.noarch 3/47Verifying : perl-IO-Socket-SSL-2.066-4.module_el8.4.0+517+be1595ff.noarch 4/47Verifying : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch 5/47Verifying : perl-Net-SSLeay-1.88-1.module_el8.4.0+517+be1595ff.x86_64 6/47Verifying : perl-URI-1.73-3.el8.noarch 7/47Verifying : perl-libnet-3.11-3.el8.noarch 8/47Verifying : net-tools-2.0-0.52.20160912git.el8.x86_64 9/47Verifying : perl-Carp-1.42-396.el8.noarch 10/47Verifying : perl-Data-Dumper-2.167-399.el8.x86_64 11/47Verifying : perl-Encode-4:2.97-3.el8.x86_64 12/47Verifying : perl-Errno-1.28-419.el8.x86_64 13/47Verifying : perl-Exporter-5.72-396.el8.noarch 14/47Verifying : perl-File-Path-2.15-2.el8.noarch 15/47Verifying : perl-File-Temp-0.230.600-1.el8.noarch 16/47Verifying : perl-Getopt-Long-1:2.50-4.el8.noarch 17/47Verifying : perl-HTTP-Tiny-0.074-1.el8.noarch 18/47Verifying : perl-IO-1.38-419.el8.x86_64 19/47Verifying : perl-MIME-Base64-3.15-396.el8.x86_64 20/47Verifying : perl-PathTools-3.74-1.el8.x86_64 21/47Verifying : perl-Pod-Escapes-1:1.07-395.el8.noarch 22/47Verifying : perl-Pod-Perldoc-3.28-396.el8.noarch 23/47Verifying : perl-Pod-Simple-1:3.35-395.el8.noarch 24/47Verifying : perl-Pod-Usage-4:1.69-395.el8.noarch 25/47Verifying : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 26/47Verifying : perl-Socket-4:2.027-3.el8.x86_64 27/47Verifying : perl-Storable-1:3.11-3.el8.x86_64 28/47Verifying : perl-Term-ANSIColor-4.06-396.el8.noarch 29/47Verifying : perl-Term-Cap-1.17-395.el8.noarch 30/47Verifying : perl-Text-ParseWords-3.30-395.el8.noarch 31/47Verifying : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 32/47Verifying : perl-Time-Local-1:1.280-1.el8.noarch 33/47Verifying : perl-Unicode-Normalize-1.25-396.el8.x86_64 34/47Verifying : perl-constant-1.33-396.el8.noarch 35/47Verifying : perl-interpreter-4:5.26.3-419.el8.x86_64 36/47Verifying : perl-libs-4:5.26.3-419.el8.x86_64 37/47Verifying : perl-macros-4:5.26.3-419.el8.x86_64 38/47Verifying : perl-parent-1:0.237-1.el8.noarch 39/47Verifying : perl-podlators-4.11-1.el8.noarch 40/47Verifying : perl-threads-1:2.21-2.el8.x86_64 41/47Verifying : perl-threads-shared-1.58-2.el8.x86_64 42/47Verifying : mysql-community-client-8.0.25-1.el8.x86_64 43/47Verifying : mysql-community-client-plugins-8.0.25-1.el8.x86_64 44/47Verifying : mysql-community-common-8.0.25-1.el8.x86_64 45/47Verifying : mysql-community-libs-8.0.25-1.el8.x86_64 46/47Verifying : mysql-community-server-8.0.25-1.el8.x86_64 47/47Installed:mysql-community-client-8.0.25-1.el8.x86_64 mysql-community-client-plugins-8.0.25-1.el8.x86_64 mysql-community-common-8.0.25-1.el8.x86_64mysql-community-libs-8.0.25-1.el8.x86_64 mysql-community-server-8.0.25-1.el8.x86_64 net-tools-2.0-0.52.20160912git.el8.x86_64perl-Carp-1.42-396.el8.noarch perl-Data-Dumper-2.167-399.el8.x86_64 perl-Digest-1.17-395.el8.noarchperl-Digest-MD5-2.55-396.el8.x86_64 perl-Encode-4:2.97-3.el8.x86_64 perl-Errno-1.28-419.el8.x86_64perl-Exporter-5.72-396.el8.noarch perl-File-Path-2.15-2.el8.noarch perl-File-Temp-0.230.600-1.el8.noarchperl-Getopt-Long-1:2.50-4.el8.noarch perl-HTTP-Tiny-0.074-1.el8.noarch perl-IO-1.38-419.el8.x86_64perl-IO-Socket-IP-0.39-5.el8.noarch perl-IO-Socket-SSL-2.066-4.module_el8.4.0+517+be1595ff.noarch perl-MIME-Base64-3.15-396.el8.x86_64perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch perl-Net-SSLeay-1.88-1.module_el8.4.0+517+be1595ff.x86_64 perl-PathTools-3.74-1.el8.x86_64perl-Pod-Escapes-1:1.07-395.el8.noarch perl-Pod-Perldoc-3.28-396.el8.noarch perl-Pod-Simple-1:3.35-395.el8.noarchperl-Pod-Usage-4:1.69-395.el8.noarch perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 perl-Socket-4:2.027-3.el8.x86_64perl-Storable-1:3.11-3.el8.x86_64 perl-Term-ANSIColor-4.06-396.el8.noarch perl-Term-Cap-1.17-395.el8.noarchperl-Text-ParseWords-3.30-395.el8.noarch perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch perl-Time-Local-1:1.280-1.el8.noarchperl-URI-1.73-3.el8.noarch perl-Unicode-Normalize-1.25-396.el8.x86_64 perl-constant-1.33-396.el8.noarchperl-interpreter-4:5.26.3-419.el8.x86_64 perl-libnet-3.11-3.el8.noarch perl-libs-4:5.26.3-419.el8.x86_64perl-macros-4:5.26.3-419.el8.x86_64 perl-parent-1:0.237-1.el8.noarch perl-podlators-4.11-1.el8.noarchperl-threads-1:2.21-2.el8.x86_64 perl-threads-shared-1.58-2.el8.x86_64Complete![root@localhost ~]#
开启MySQL并设置开机自启
~]# systemctl start mysqld~]# systemctl status mysqldmysqld.service - MySQL ServerLoaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)Active: active (running) since Tue 2021-06-01 11:32:23 CST; 3s agoDocs: man:mysqld(8)http://dev.mysql.com/doc/refman/en/using-systemd.htmlProcess: 10288 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)Main PID: 10360 (mysqld)Status: "Server is operational"Tasks: 38 (limit: 49311)Memory: 442.2MCGroup: /system.slice/mysqld.service/usr/sbin/mysqldJun 01 11:32:19 localhost.localdomain systemd[1]: Starting MySQL Server...Jun 01 11:32:23 localhost.localdomain systemd[1]: Started MySQL Server.~]# systemctl enable mysqld~]#
查看MySQL密码并做修改
[root@localhost ~]# sudo grep 'temporary password' /var/log/mysqld.log2021-06-01T03:32:20.184056Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 1g8u_2YNP6pF[root@localhost ~]#[root@localhost ~]# mysql -uroot -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 8Server version: 8.0.25Copyright (c) 2000, 2021, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Cby123..';Query OK, 0 rows affected (0.00 sec)mysql> ^DBye[root@localhost ~]# mysql -uroot -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 9Server version: 8.0.25 MySQL Community Server - GPLCopyright (c) 2000, 2021, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>
安装tcl
[][][][]ChangeLog ChangeLog.2000 ChangeLog.2002 ChangeLog.2004 ChangeLog.2007 changes doc library license.terms pkgs tests unixChangeLog.1999 ChangeLog.2001 ChangeLog.2003 ChangeLog.2005 ChangeLog.2008 compat generic libtommath macosx README tools win[][][][]
Redis安装
[]--2021-06-01 16:19:17-- http://download.redis.io/releases/redis-5.0.2.tar.gzResolving download.redis.io (download.redis.io)... 45.60.125.1Connecting to download.redis.io (download.redis.io)|45.60.125.1|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 1952989 (1.9M) [application/octet-stream]Saving to: ‘redis-5.0.2.tar.gz’redis-5.0.2.tar.gz 100%[====================================================================================================>] 1.86M 160KB/s in 20s2021-06-01 16:19:38 (94.2 KB/s) - ‘redis-5.0.2.tar.gz’ saved [1952989/1952989][][][]00-RELEASENOTES BUGS CONTRIBUTING COPYING deps INSTALL Makefile MANIFESTO README.md redis.conf runtest runtest-cluster runtest-sentinel sentinel.conf src tests utils[][][][][][][]
docker版本的安装,先安装docker,官方推荐使用docker
[][]% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed100 633 100 633 0 0 646 0 --:--:-- --:--:-- --:--:-- 645100 10.3M 100 10.3M 0 0 3488k 0 0:00:03 0:00:03 --:--:-- 7845k[][]docker-compose version 1.21.0, build 5920eb0[]
下载FATE的docker版本tar包
[root@localhost ~]# wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/docker_standalone_fate_1.6.0.tar.gz--2021-06-01 14:33:36-- https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/docker_standalone_fate_1.6.0.tar.gzResolving webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com (webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com)... 157.148.42.15, 157.148.42.125, 157.148.42.16, ...Connecting to webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com (webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com)|157.148.42.15|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 3387195831 (3.2G) [application/octet-stream]Saving to: ‘docker_standalone_fate_1.6.0.tar.gz’docker_standalone_fate_1.6.0.tar.gz 100%[====================================================================================================>] 3.15G 16.4MB/s in 3m 10s2021-06-01 14:36:46 (17.0 MB/s) - ‘docker_standalone_fate_1.6.0.tar.gz’ saved [3387195831/3387195831][root@localhost ~]# tar xf docker_standalone_fate_1.6.0.tar.gz[root@localhost ~]# ls docker_standalone_fate_1.6.0fate.tar install_standalone_docker.sh[root@localhost ~]#[root@localhost ~]# systemctl start docker[root@localhost ~]# systemctl enable dockerCreated symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.[root@localhost ~]#
使用脚本一键部署安装
~]# cd docker_standalone_fate_1.6.0docker_standalone_fate_1.6.0]# bash install_standalone_docker.sh4ef54afed780: Loading layer [==================================================>] 119.2MB/119.2MB6add0d2b5482: Loading layer [==================================================>] 17.1MB/17.1MBd37096232ed8: Loading layer [==================================================>] 17.85MB/17.85MB17bdf5e22660: Loading layer [==================================================>] 150MB/150MBa995c5106335: Loading layer [==================================================>] 520.4MB/520.4MB97be79495d2a: Loading layer [==================================================>] 18.5MB/18.5MBb3b4d14f7bc3: Loading layer [==================================================>] 46.27MB/46.27MB8704124c1733: Loading layer [==================================================>] 4.608kB/4.608kBf9150e47dbd4: Loading layer [==================================================>] 7.771MB/7.771MBe94cd7f7c243: Loading layer [==================================================>] 2.048kB/2.048kBeec950ffde0a: Loading layer [==================================================>] 2.56kB/2.56kB50cb316bab14: Loading layer [==================================================>] 3.222GB/3.222GBc25d46e1ccab: Loading layer [==================================================>] 207.2MB/207.2MBdf5d901d8f7f: Loading layer [==================================================>] 1.364MB/1.364MB9048f73d0f31: Loading layer [==================================================>] 4.608kB/4.608kBd8294e71fece: Loading layer [==================================================>] 149.5kB/149.5kBd0e3e9491b04: Loading layer [==================================================>] 54.97MB/54.97MB364689455a57: Loading layer [==================================================>] 1.198GB/1.198GB01e9ec2515d7: Loading layer [==================================================>] 436.3MB/436.3MB612d5da431ea: Loading layer [==================================================>] 2.56kB/2.56kB2ee72f471af7: Loading layer [==================================================>] 2.048kB/2.048kBa30462f24fae: Loading layer [==================================================>] 3.584kB/3.584kB6d184bc4d38f: Loading layer [==================================================>] 3.584kB/3.584kB2ae05253db3b: Loading layer [==================================================>] 397.8MB/397.8MBLoaded image: fate:latestREPOSITORY TAG IMAGE ID CREATED SIZEfate latest 31f279e888c0 2 months ago 6.35GB625c1239a7fe808d895b4e33aedada1594e21da2b1814e4888bffa8c728df4c0CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES625c1239a7fe fate:latest "docker-entrypoint.s…" 1 second ago Up Less than a second 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp fatedocker_standalone_fate_1.6.0]#
进入容器内部进行单元测试验证操作
[root@localhost docker_standalone_fate_1.6.0]# docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES625c1239a7fe fate:latest "docker-entrypoint.s…" 7 minutes ago Up 6 minutes 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp fate[root@localhost docker_standalone_fate_1.6.0]# docker exec -t -i 625c1239a7fe bashroot@625c1239a7fe:/fate#root@625c1239a7fe:/fate#root@625c1239a7fe:/fate# bash ./python/federatedml/test/run_test.sh#过程略,文字太多
# 如果成功,屏幕显示如下:there are 0 failed test
在容器内进行 Toy_example 测试
root@625c1239a7fe:/fatestdout:{"data": {"board_url": "http://127.0.0.1:8080/index.html#/dashboard?job_id=202106010651173114561&role=guest&party_id=10000","job_dsl_path": "/fate/jobs/202106010651173114561/job_dsl.json","job_id": "202106010651173114561","job_runtime_conf_on_party_path": "/fate/jobs/202106010651173114561/guest/job_runtime_on_party_conf.json","job_runtime_conf_path": "/fate/jobs/202106010651173114561/job_runtime_conf.json","logs_directory": "/fate/logs/202106010651173114561","model_info": {"model_id": "guest-10000#host-10000#model","model_version": "202106010651173114561"},"pipeline_dsl_path": "/fate/jobs/202106010651173114561/pipeline_dsl.json","train_runtime_conf_path": "/fate/jobs/202106010651173114561/train_runtime_conf.json"},"jobId": "202106010651173114561","retcode": 0,"retmsg": "success"}job status is waitingjob status is running[] [2021-06-01 06:51:20,467] [3658:140591244445504] - secure_add_guest.py[line:99]: begin to init parameters of secure add example guest[] [2021-06-01 06:51:20,468] [3658:140591244445504] - secure_add_guest.py[line:102]: begin to make guest data[] [2021-06-01 06:51:20,528] [3658:140591244445504] - secure_add_guest.py[line:105]: split data into two random parts[] [2021-06-01 06:51:20,703] [3658:140591244445504] - secure_add_guest.py[line:108]: share one random part data to host[] [2021-06-01 06:51:20,826] [3658:140591244445504] - secure_add_guest.py[line:111]: get share of one random part data from host[] [2021-06-01 06:51:20,939] [3658:140591244445504] - secure_add_guest.py[line:114]: begin to get sum of guest and host[] [2021-06-01 06:51:21,014] [3658:140591244445504] - secure_add_guest.py[line:117]: receive host sum from guest[] [2021-06-01 06:51:21,019] [3658:140591244445504] - secure_add_guest.py[line:124]: success to calculate secure_sum, it is 2000.0000000000005root@625c1239a7fe:/fate
success to calculate secure_sum, it is 2000.0
使用IP+8080端口即可访问可视化界面
单机版FATE的安装---需要使用cento7
[root@localhost ~]# yum update[root@localhost ~]# yum install python3[root@localhost ~]# yum install java-1.8.0-openjdk[root@localhost ~]# java -version[root@localhost ~]# python3[root@localhost ~]#[root@localhost ~]# wget wget https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/standalone_fate_master_1.6.0.tar.gz--2021-06-01 14:19:25-- http://wget/Resolving wget (wget)... failed: Name or service not known.wget: unable to resolve host address ‘wget’--2021-06-01 14:19:25-- https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/standalone_fate_master_1.6.0.tar.gzResolving webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com (webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com)... 157.148.42.102, 157.148.42.14, 157.148.42.13, ...Connecting to webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com (webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com)|157.148.42.102|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 372891897 (356M) [application/octet-stream]Saving to: ‘standalone_fate_master_1.6.0.tar.gz’standalone_fate_master_1.6.0.tar.gz 100%[====================================================================================================>] 355.62M 16.8MB/s in 48s2021-06-01 14:20:13 (7.42 MB/s) - ‘standalone_fate_master_1.6.0.tar.gz’ saved [372891897/372891897]FINISHED --2021-06-01 14:20:13--Total wall clock time: 48sDownloaded: 1 files, 356M in 48s (7.42 MB/s)[root@localhost ~]#[root@localhost ~]#[root@localhost ~]# netstat -apln|grep 8080[root@localhost ~]# netstat -apln|grep 9360[root@localhost ~]# netstat -apln|grep 9380[root@localhost ~]#[root@localhost ~]#[root@localhost ~]# tar xf standalone_fate_master_1.6.0.tar.gz[root@localhost ~]# ls standalone_fate_master_1.6.0bin conf examples fateboard fate.env files init.sh jdk python RELEASE.md[root@localhost ~]#[root@localhost ~]# cd standalone_fate_master_1.6.0/[root@localhost standalone_fate_master_1.6.0]# lsbin conf examples fateboard fate.env files init.sh jdk python RELEASE.md[root@localhost standalone_fate_master_1.6.0]#[root@localhost standalone_fate_master_1.6.0]#[root@localhost standalone_fate_master_1.6.0]# bash init.sh init# 单元测试[root@localhost standalone_fate_master_1.6.0]# source bin/init_env.sh[root@localhost standalone_fate_master_1.6.0]# bash ./python/federatedml/test/run_test.sh# Toy_example 测试[root@localhost standalone_fate_master_1.6.0]# source bin/init_env.sh[root@localhost standalone_fate_master_1.6.0]# python ./examples/toy_example/run_toy_example.py 10000 10000 0
单元测试如果成功,屏幕显示如下:
there are 0 failed test
Toy_example 测试如果成功,屏幕显示如下:
success to calculate secure_sum, it is 2000.0
注*:具体版本需要参考该官网文档,旧的版本官方会删掉
https://github.com/FederatedAI/FATE/blob/master/fate.env
