聯邦學習 html
FATE (Federated AI Technology Enabler) 是微衆銀行AI部門發起的開源項目,爲聯邦學習生態系統提供了可靠的安全計算框架。FATE項目使用多方安全計算 (MPC) 以及同態加密 (HE) 技術構建底層安全計算協議,以此支持不一樣種類的機器學習的安全計算,包括邏輯迴歸、基於樹的算法、深度學習和遷移學習等。java
FATE官方網站:https://fate.fedai.org/python
FATE文檔:https://fate.readthedocs.io/mysql
安裝與配置-Python3.6安裝git
[root@localhost ~]# yum -y install epel-release Last 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 k Transaction Summary ============================================================================================================================================================================================= Install 1 Package Total download size: 23 k Installed size: 32 k Downloading Packages: epel-release-8-8.el8.noarch.rpm 33 kB/s | 23 kB 00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 17 kB/s | 23 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-8.el8.noarch 1/1 Running scriptlet: epel-release-8-8.el8.noarch 1/1 Verifying : epel-release-8-8.el8.noarch 1/1 Installed: epel-release-8-8.el8.noarch Complete! [root@localhost ~]# yum -y install python36 Extra Packages for Enterprise Linux Modular 8 - x86_64 673 kB/s | 610 kB 00:00 Extra Packages for Enterprise Linux 8 - x86_64 6.9 MB/s | 9.4 MB 00:01 Dependencies resolved. ============================================================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================================================= Installing: python36 x86_64 3.6.8-37.module_el8.5.0+771+e5d9a225 appstream 19 k Installing dependencies: python3-pip noarch 9.0.3-19.el8 appstream 20 k python3-setuptools noarch 39.2.0-6.el8 baseos 163 k Enabling module streams: python36 3.6 Transaction Summary ============================================================================================================================================================================================= Install 3 Packages Total download size: 201 k Installed size: 466 k Downloading 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:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-setuptools-39.2.0-6.el8.noarch 1/3 Installing : python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64 2/3 Running scriptlet: python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64 2/3 Installing : python3-pip-9.0.3-19.el8.noarch 3/3 Running scriptlet: python3-pip-9.0.3-19.el8.noarch 3/3 Verifying : python3-pip-9.0.3-19.el8.noarch 1/3 Verifying : python36-3.6.8-37.module_el8.5.0+771+e5d9a225.x86_64 2/3 Verifying : python3-setuptools-39.2.0-6.el8.noarch 3/3 Installed: 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_64 Complete! [root@localhost ~]#
安裝virtualenv 和 virtualenvwrappergithub
virtualenv 是一個建立隔絕的Python環境的工具。virtualenv建立一個包含全部必要的可執行文件的文件夾,用來使用Python工程所需的包,同時能夠使不一樣應用開發環境獨立,環境升級不影響其餘應用,也不會影響全局的python環境,它能夠防止系統中出現包管理混亂和版本的衝突。web
[root@localhost ~]# pip3 install virtualenv WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting virtualenv Downloading https://files.pythonhosted.org/packages/03/08/f819421002e85a71d58368f7bffbe0b1921325e0e8ca7857cb5fb0e1f7c1/virtualenv-20.4.7-py2.py3-none-any.whl (7.2MB) 100% |████████████████████████████████| 7.2MB 163kB/s Collecting appdirs<2,>=1.4.3 (from virtualenv) Downloading https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl Collecting 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.whl Requirement 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.whl Collecting filelock<4,>=3.0.0 (from virtualenv) Downloading https://files.pythonhosted.org/packages/93/83/71a2ee6158bb9f39a90c0dea1637f81d5eef866e188e1971a1b1ab01a35a/filelock-3.0.12-py3-none-any.whl Collecting 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/s Collecting 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.whl Collecting 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.whl Installing collected packages: appdirs, zipp, typing-extensions, importlib-metadata, importlib-resources, filelock, distlib, virtualenv Successfully 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 virtualenvwrapper WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting virtualenvwrapper Downloading https://files.pythonhosted.org/packages/c1/6b/2f05d73b2d2f2410b48b90d3783a0034c26afa534a4a95ad5f1178d61191/virtualenvwrapper-4.8.4.tar.gz (334kB) 100% |████████████████████████████████| 337kB 1.7MB/s Requirement 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.whl Collecting 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/s Requirement 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/s Requirement 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, virtualenvwrapper Running setup.py install for virtualenvwrapper ... done Successfully installed pbr-5.6.0 stevedore-3.3.0 virtualenv-clone-0.5.4 virtualenvwrapper-4.8.4 [root@localhost ~]#
安裝Java1.8redis
[root@localhost ~]# yum install java Last 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 k Installing dependencies: alsa-lib x86_64 1.2.4-5.el8 appstream 471 k atk x86_64 2.28.1-1.el8 appstream 272 k avahi-libs x86_64 0.7-20.el8 baseos 62 k cairo x86_64 1.15.12-3.el8 appstream 721 k copy-jdk-configs noarch 3.7-4.el8 appstream 27 k cups-libs x86_64 1:2.2.6-40.el8 baseos 433 k dejavu-fonts-common noarch 2.35-7.el8 baseos 74 k dejavu-sans-fonts noarch 2.35-7.el8 baseos 1.6 M fontconfig x86_64 2.13.1-3.el8 baseos 275 k fontpackages-filesystem noarch 1.44-22.el8 baseos 16 k fribidi x86_64 1.0.4-8.el8 appstream 89 k gdk-pixbuf2 x86_64 2.36.12-5.el8 baseos 467 k gdk-pixbuf2-modules x86_64 2.36.12-5.el8 appstream 109 k giflib x86_64 5.1.4-3.el8 appstream 51 k graphite2 x86_64 1.3.10-10.el8 appstream 122 k gtk-update-icon-cache x86_64 3.22.30-6.el8 appstream 32 k harfbuzz x86_64 1.7.5-3.el8 appstream 295 k hicolor-icon-theme noarch 0.17-2.el8 appstream 49 k jasper-libs x86_64 2.0.14-4.el8 appstream 167 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.292.b10-2.el8 appstream 34 M javapackages-filesystem noarch 5.3.0-1.module_el8.0.0+11+5b8c10bd appstream 30 k jbigkit-libs x86_64 2.1-14.el8 appstream 55 k libX11 x86_64 1.6.8-4.el8 appstream 611 k libX11-common noarch 1.6.8-4.el8 appstream 158 k libXau x86_64 1.0.9-3.el8 appstream 37 k libXcomposite x86_64 0.4.4-14.el8 appstream 28 k libXcursor x86_64 1.1.15-3.el8 appstream 36 k libXdamage x86_64 1.1.4-14.el8 appstream 27 k libXext x86_64 1.3.4-1.el8 appstream 45 k libXfixes x86_64 5.0.3-7.el8 appstream 25 k libXft x86_64 2.3.3-1.el8 appstream 67 k libXi x86_64 1.7.10-1.el8 appstream 49 k libXinerama x86_64 1.1.4-1.el8 appstream 16 k libXrandr x86_64 1.5.2-1.el8 appstream 34 k libXrender x86_64 0.9.10-7.el8 appstream 33 k libXtst x86_64 1.2.3-7.el8 appstream 22 k libdatrie x86_64 0.2.9-7.el8 appstream 33 k libfontenc x86_64 1.1.3-8.el8 appstream 37 k libjpeg-turbo x86_64 1.5.3-10.el8 appstream 156 k libthai x86_64 0.1.27-2.el8 appstream 203 k libtiff x86_64 4.0.9-18.el8 appstream 188 k libxcb x86_64 1.13.1-1.el8 appstream 229 k lksctp-tools x86_64 1.0.18-3.el8 baseos 100 k lua x86_64 5.3.4-11.el8 appstream 193 k nspr x86_64 4.25.0-2.el8_2 appstream 142 k nss x86_64 3.53.1-17.el8_3 appstream 723 k nss-softokn x86_64 3.53.1-17.el8_3 appstream 484 k nss-softokn-freebl x86_64 3.53.1-17.el8_3 appstream 376 k nss-sysinit x86_64 3.53.1-17.el8_3 appstream 72 k nss-util x86_64 3.53.1-17.el8_3 appstream 136 k pango x86_64 1.42.4-6.el8 appstream 298 k pixman x86_64 0.38.4-1.el8 appstream 257 k ttmkfdir x86_64 3.0.9-54.el8 appstream 62 k tzdata-java noarch 2021a-1.el8 appstream 192 k xorg-x11-font-utils x86_64 1:7.5-41.el8 appstream 104 k xorg-x11-fonts-Type1 noarch 7.5-19.el8 appstream 522 k Installing weak dependencies: gtk2 x86_64 2.24.32-5.el8 appstream 3.4 M Enabling module streams: javapackages-runtime 201801 Transaction Summary ============================================================================================================================================================================================= Install 58 Packages Total download size: 48 M Installed size: 163 M Is this ok [y/N]: y Downloading 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:34 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: copy-jdk-configs-3.7-4.el8.noarch 1/1 Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 1/1 Preparing : 1/1 Installing : nspr-4.25.0-2.el8_2.x86_64 1/58 Running scriptlet: nspr-4.25.0-2.el8_2.x86_64 1/58 Installing : libjpeg-turbo-1.5.3-10.el8.x86_64 2/58 Installing : nss-util-3.53.1-17.el8_3.x86_64 3/58 Installing : gdk-pixbuf2-2.36.12-5.el8.x86_64 4/58 Running scriptlet: gdk-pixbuf2-2.36.12-5.el8.x86_64 4/58 Installing : fontpackages-filesystem-1.44-22.el8.noarch 5/58 Installing : dejavu-fonts-common-2.35-7.el8.noarch 6/58 Installing : dejavu-sans-fonts-2.35-7.el8.noarch 7/58 Installing : fontconfig-2.13.1-3.el8.x86_64 8/58 Running scriptlet: fontconfig-2.13.1-3.el8.x86_64 8/58 Installing : gtk-update-icon-cache-3.22.30-6.el8.x86_64 9/58 Installing : nss-softokn-freebl-3.53.1-17.el8_3.x86_64 10/58 Installing : nss-softokn-3.53.1-17.el8_3.x86_64 11/58 Installing : nss-3.53.1-17.el8_3.x86_64 12/58 Installing : nss-sysinit-3.53.1-17.el8_3.x86_64 13/58 Installing : jasper-libs-2.0.14-4.el8.x86_64 14/58 Installing : lksctp-tools-1.0.18-3.el8.x86_64 15/58 Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64 15/58 Installing : avahi-libs-0.7-20.el8.x86_64 16/58 Installing : cups-libs-1:2.2.6-40.el8.x86_64 17/58 Installing : tzdata-java-2021a-1.el8.noarch 18/58 Installing : ttmkfdir-3.0.9-54.el8.x86_64 19/58 Installing : pixman-0.38.4-1.el8.x86_64 20/58 Installing : lua-5.3.4-11.el8.x86_64 21/58 Installing : copy-jdk-configs-3.7-4.el8.noarch 22/58 Installing : libfontenc-1.1.3-8.el8.x86_64 23/58 Installing : xorg-x11-font-utils-1:7.5-41.el8.x86_64 24/58 Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 25/58 Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 25/58 Installing : libdatrie-0.2.9-7.el8.x86_64 26/58 Running scriptlet: libdatrie-0.2.9-7.el8.x86_64 26/58 Installing : libthai-0.1.27-2.el8.x86_64 27/58 Running scriptlet: libthai-0.1.27-2.el8.x86_64 27/58 Installing : libXau-1.0.9-3.el8.x86_64 28/58 Installing : libxcb-1.13.1-1.el8.x86_64 29/58 Installing : libX11-common-1.6.8-4.el8.noarch 30/58 Installing : libX11-1.6.8-4.el8.x86_64 31/58 Installing : libXext-1.3.4-1.el8.x86_64 32/58 Installing : libXrender-0.9.10-7.el8.x86_64 33/58 Installing : libXi-1.7.10-1.el8.x86_64 34/58 Installing : libXfixes-5.0.3-7.el8.x86_64 35/58 Installing : cairo-1.15.12-3.el8.x86_64 36/58 Installing : libXcomposite-0.4.4-14.el8.x86_64 37/58 Installing : libXcursor-1.1.15-3.el8.x86_64 38/58 Installing : libXdamage-1.1.4-14.el8.x86_64 39/58 Installing : libXtst-1.2.3-7.el8.x86_64 40/58 Installing : libXft-2.3.3-1.el8.x86_64 41/58 Installing : libXrandr-1.5.2-1.el8.x86_64 42/58 Installing : libXinerama-1.1.4-1.el8.x86_64 43/58 Installing : jbigkit-libs-2.1-14.el8.x86_64 44/58 Running scriptlet: jbigkit-libs-2.1-14.el8.x86_64 44/58 Installing : libtiff-4.0.9-18.el8.x86_64 45/58 Installing : gdk-pixbuf2-modules-2.36.12-5.el8.x86_64 46/58 Installing : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 47/58 Installing : java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 48/58 Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 48/58 Installing : hicolor-icon-theme-0.17-2.el8.noarch 49/58 Installing : graphite2-1.3.10-10.el8.x86_64 50/58 Installing : harfbuzz-1.7.5-3.el8.x86_64 51/58 Running scriptlet: harfbuzz-1.7.5-3.el8.x86_64 51/58 Installing : giflib-5.1.4-3.el8.x86_64 52/58 Installing : fribidi-1.0.4-8.el8.x86_64 53/58 Installing : pango-1.42.4-6.el8.x86_64 54/58 Running scriptlet: pango-1.42.4-6.el8.x86_64 54/58 Installing : atk-2.28.1-1.el8.x86_64 55/58 Installing : gtk2-2.24.32-5.el8.x86_64 56/58 Running scriptlet: gtk2-2.24.32-5.el8.x86_64 56/58 Installing : alsa-lib-1.2.4-5.el8.x86_64 57/58 Running scriptlet: alsa-lib-1.2.4-5.el8.x86_64 57/58 Installing : java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 58/58 Running scriptlet: java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 58/58 Running scriptlet: nss-3.53.1-17.el8_3.x86_64 58/58 Running scriptlet: copy-jdk-configs-3.7-4.el8.noarch 58/58 Running scriptlet: java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 58/58 Running scriptlet: gdk-pixbuf2-2.36.12-5.el8.x86_64 58/58 Running scriptlet: fontconfig-2.13.1-3.el8.x86_64 58/58 Running scriptlet: hicolor-icon-theme-0.17-2.el8.noarch 58/58 Verifying : alsa-lib-1.2.4-5.el8.x86_64 1/58 Verifying : atk-2.28.1-1.el8.x86_64 2/58 Verifying : cairo-1.15.12-3.el8.x86_64 3/58 Verifying : copy-jdk-configs-3.7-4.el8.noarch 4/58 Verifying : fribidi-1.0.4-8.el8.x86_64 5/58 Verifying : gdk-pixbuf2-modules-2.36.12-5.el8.x86_64 6/58 Verifying : giflib-5.1.4-3.el8.x86_64 7/58 Verifying : graphite2-1.3.10-10.el8.x86_64 8/58 Verifying : gtk-update-icon-cache-3.22.30-6.el8.x86_64 9/58 Verifying : gtk2-2.24.32-5.el8.x86_64 10/58 Verifying : harfbuzz-1.7.5-3.el8.x86_64 11/58 Verifying : hicolor-icon-theme-0.17-2.el8.noarch 12/58 Verifying : jasper-libs-2.0.14-4.el8.x86_64 13/58 Verifying : java-1.8.0-openjdk-1:1.8.0.292.b10-2.el8.x86_64 14/58 Verifying : java-1.8.0-openjdk-headless-1:1.8.0.292.b10-2.el8.x86_64 15/58 Verifying : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 16/58 Verifying : jbigkit-libs-2.1-14.el8.x86_64 17/58 Verifying : libX11-1.6.8-4.el8.x86_64 18/58 Verifying : libX11-common-1.6.8-4.el8.noarch 19/58 Verifying : libXau-1.0.9-3.el8.x86_64 20/58 Verifying : libXcomposite-0.4.4-14.el8.x86_64 21/58 Verifying : libXcursor-1.1.15-3.el8.x86_64 22/58 Verifying : libXdamage-1.1.4-14.el8.x86_64 23/58 Verifying : libXext-1.3.4-1.el8.x86_64 24/58 Verifying : libXfixes-5.0.3-7.el8.x86_64 25/58 Verifying : libXft-2.3.3-1.el8.x86_64 26/58 Verifying : libXi-1.7.10-1.el8.x86_64 27/58 Verifying : libXinerama-1.1.4-1.el8.x86_64 28/58 Verifying : libXrandr-1.5.2-1.el8.x86_64 29/58 Verifying : libXrender-0.9.10-7.el8.x86_64 30/58 Verifying : libXtst-1.2.3-7.el8.x86_64 31/58 Verifying : libdatrie-0.2.9-7.el8.x86_64 32/58 Verifying : libfontenc-1.1.3-8.el8.x86_64 33/58 Verifying : libjpeg-turbo-1.5.3-10.el8.x86_64 34/58 Verifying : libthai-0.1.27-2.el8.x86_64 35/58 Verifying : libtiff-4.0.9-18.el8.x86_64 36/58 Verifying : libxcb-1.13.1-1.el8.x86_64 37/58 Verifying : lua-5.3.4-11.el8.x86_64 38/58 Verifying : nspr-4.25.0-2.el8_2.x86_64 39/58 Verifying : nss-3.53.1-17.el8_3.x86_64 40/58 Verifying : nss-softokn-3.53.1-17.el8_3.x86_64 41/58 Verifying : nss-softokn-freebl-3.53.1-17.el8_3.x86_64 42/58 Verifying : nss-sysinit-3.53.1-17.el8_3.x86_64 43/58 Verifying : nss-util-3.53.1-17.el8_3.x86_64 44/58 Verifying : pango-1.42.4-6.el8.x86_64 45/58 Verifying : pixman-0.38.4-1.el8.x86_64 46/58 Verifying : ttmkfdir-3.0.9-54.el8.x86_64 47/58 Verifying : tzdata-java-2021a-1.el8.noarch 48/58 Verifying : xorg-x11-font-utils-1:7.5-41.el8.x86_64 49/58 Verifying : xorg-x11-fonts-Type1-7.5-19.el8.noarch 50/58 Verifying : avahi-libs-0.7-20.el8.x86_64 51/58 Verifying : cups-libs-1:2.2.6-40.el8.x86_64 52/58 Verifying : dejavu-fonts-common-2.35-7.el8.noarch 53/58 Verifying : dejavu-sans-fonts-2.35-7.el8.noarch 54/58 Verifying : fontconfig-2.13.1-3.el8.x86_64 55/58 Verifying : fontpackages-filesystem-1.44-22.el8.noarch 56/58 Verifying : gdk-pixbuf2-2.36.12-5.el8.x86_64 57/58 Verifying : lksctp-tools-1.0.18-3.el8.x86_64 58/58 Installed: alsa-lib-1.2.4-5.el8.x86_64 atk-2.28.1-1.el8.x86_64 avahi-libs-0.7-20.el8.x86_64 cairo-1.15.12-3.el8.x86_64 copy-jdk-configs-3.7-4.el8.noarch cups-libs-1:2.2.6-40.el8.x86_64 dejavu-fonts-common-2.35-7.el8.noarch dejavu-sans-fonts-2.35-7.el8.noarch fontconfig-2.13.1-3.el8.x86_64 fontpackages-filesystem-1.44-22.el8.noarch fribidi-1.0.4-8.el8.x86_64 gdk-pixbuf2-2.36.12-5.el8.x86_64 gdk-pixbuf2-modules-2.36.12-5.el8.x86_64 giflib-5.1.4-3.el8.x86_64 graphite2-1.3.10-10.el8.x86_64 gtk-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_64 hicolor-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_64 java-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_64 libX11-1.6.8-4.el8.x86_64 libX11-common-1.6.8-4.el8.noarch libXau-1.0.9-3.el8.x86_64 libXcomposite-0.4.4-14.el8.x86_64 libXcursor-1.1.15-3.el8.x86_64 libXdamage-1.1.4-14.el8.x86_64 libXext-1.3.4-1.el8.x86_64 libXfixes-5.0.3-7.el8.x86_64 libXft-2.3.3-1.el8.x86_64 libXi-1.7.10-1.el8.x86_64 libXinerama-1.1.4-1.el8.x86_64 libXrandr-1.5.2-1.el8.x86_64 libXrender-0.9.10-7.el8.x86_64 libXtst-1.2.3-7.el8.x86_64 libdatrie-0.2.9-7.el8.x86_64 libfontenc-1.1.3-8.el8.x86_64 libjpeg-turbo-1.5.3-10.el8.x86_64 libthai-0.1.27-2.el8.x86_64 libtiff-4.0.9-18.el8.x86_64 libxcb-1.13.1-1.el8.x86_64 lksctp-tools-1.0.18-3.el8.x86_64 lua-5.3.4-11.el8.x86_64 nspr-4.25.0-2.el8_2.x86_64 nss-3.53.1-17.el8_3.x86_64 nss-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_64 nss-util-3.53.1-17.el8_3.x86_64 pango-1.42.4-6.el8.x86_64 pixman-0.38.4-1.el8.x86_64 ttmkfdir-3.0.9-54.el8.x86_64 tzdata-java-2021a-1.el8.noarch xorg-x11-font-utils-1:7.5-41.el8.x86_64 xorg-x11-fonts-Type1-7.5-19.el8.noarch Complete! [root@localhost ~]#
驗證算法
[root@localhost ~]# java -version openjdk 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安裝sql
[root@localhost ~]# yum install wget Last 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 k Transaction Summary ============================================================================================================================================================================================= Install 1 Package Total download size: 734 k Installed size: 2.8 M Is this ok [y/N]: y Downloading 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:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : wget-1.19.5-10.el8.x86_64 1/1 Running scriptlet: wget-1.19.5-10.el8.x86_64 1/1 Verifying : wget-1.19.5-10.el8.x86_64 1/1 Installed: wget-1.19.5-10.el8.x86_64 Complete! [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.rpm Resolving repo.mysql.com (repo.mysql.com)... 23.204.250.61 Connecting to repo.mysql.com (repo.mysql.com)|23.204.250.61|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 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.2s 2021-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.rpm Last 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 k Transaction Summary ============================================================================================================================================================================================= Install 1 Package Total size: 30 k Installed size: 29 k Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : mysql80-community-release-el8-1.noarch 1/1 Verifying : mysql80-community-release-el8-1.noarch 1/1 Installed: mysql80-community-release-el8-1.noarch Complete! [root@localhost ~]# yum update MySQL 8.0 Community Server 1.0 MB/s | 1.7 MB 00:01 MySQL Connectors Community 65 kB/s | 62 kB 00:00 MySQL Tools Community 217 kB/s | 271 kB 00:01 Last 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 k Transaction Summary ============================================================================================================================================================================================= Upgrade 1 Package Total download size: 22 k Is this ok [y/N]: y Downloading Packages: epel-release-8-10.el8.noarch.rpm 145 kB/s | 22 kB 00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 40 kB/s | 22 kB 00:00 warning: /var/cache/dnf/epel-6519ee669354a484/packages/epel-release-8-10.el8.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0x2F86D6A1: Userid : "Fedora EPEL (8) <epel@fedoraproject.org>" Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 Is this ok [y/N]: y Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: epel-release-8-10.el8.noarch 1/1 Upgrading : epel-release-8-10.el8.noarch 1/2 Cleanup : epel-release-8-8.el8.noarch 2/2 Running scriptlet: epel-release-8-8.el8.noarch 2/2 Verifying : epel-release-8-10.el8.noarch 1/2 Verifying : epel-release-8-8.el8.noarch 2/2 Upgraded: epel-release-8-10.el8.noarch Complete! [root@localhost ~]# yum repolist enabled | grep "mysql.*-community.*" mysql-connectors-community MySQL Connectors Community mysql-tools-community MySQL Tools Community mysql80-community MySQL 8.0 Community Server [root@localhost ~]#
禁用mysql模塊
(僅限 EL8 系統)基於 EL8 的系統(例如 RHEL8 和 Oracle Linux 8)包含一個默認啓用的 MySQL 模塊。除非禁用此模塊,不然它會屏蔽 MySQL 存儲庫提供的包。要禁用包含的模塊並使 MySQL 存儲庫包可見,請使用如下命令(對於啓用 dnf 的系統,將命令中的yum替換 爲 dnf)
[root@localhost ~]# yum module disable mysql MySQL 8.0 Community Server 8.0 kB/s | 2.6 kB 00:00 MySQL Connectors Community 8.0 kB/s | 2.6 kB 00:00 MySQL Tools Community 8.0 kB/s | 2.6 kB 00:00 MySQL Tools Preview 7.6 kB/s | 2.4 kB 00:00 MySQL Cluster 8.0 Community 7.9 kB/s | 2.6 kB 00:00 Dependencies resolved. ============================================================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================================================= Disabling modules: mysql Transaction Summary ============================================================================================================================================================================================= Is this ok [y/N]: y Complete! [root@localhost ~]#
安裝mysql-community-server
[root@localhost ~]# yum install mysql-community-server Last 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 M Installing dependencies: mysql-community-client x86_64 8.0.25-1.el8 mysql80-community 13 M mysql-community-client-plugins x86_64 8.0.25-1.el8 mysql80-community 98 k mysql-community-common x86_64 8.0.25-1.el8 mysql80-community 618 k mysql-community-libs x86_64 8.0.25-1.el8 mysql80-community 1.4 M net-tools x86_64 2.0-0.52.20160912git.el8 baseos 322 k perl-Carp noarch 1.42-396.el8 baseos 30 k perl-Data-Dumper x86_64 2.167-399.el8 baseos 58 k perl-Digest noarch 1.17-395.el8 appstream 27 k perl-Digest-MD5 x86_64 2.55-396.el8 appstream 37 k perl-Encode x86_64 4:2.97-3.el8 baseos 1.5 M perl-Errno x86_64 1.28-419.el8 baseos 76 k perl-Exporter noarch 5.72-396.el8 baseos 34 k perl-File-Path noarch 2.15-2.el8 baseos 38 k perl-File-Temp noarch 0.230.600-1.el8 baseos 63 k perl-Getopt-Long noarch 1:2.50-4.el8 baseos 63 k perl-HTTP-Tiny noarch 0.074-1.el8 baseos 58 k perl-IO x86_64 1.38-419.el8 baseos 142 k perl-MIME-Base64 x86_64 3.15-396.el8 baseos 31 k perl-Net-SSLeay x86_64 1.88-1.module_el8.4.0+517+be1595ff appstream 379 k perl-PathTools x86_64 3.74-1.el8 baseos 90 k perl-Pod-Escapes noarch 1:1.07-395.el8 baseos 20 k perl-Pod-Perldoc noarch 3.28-396.el8 baseos 86 k perl-Pod-Simple noarch 1:3.35-395.el8 baseos 213 k perl-Pod-Usage noarch 4:1.69-395.el8 baseos 34 k perl-Scalar-List-Utils x86_64 3:1.49-2.el8 baseos 68 k perl-Socket x86_64 4:2.027-3.el8 baseos 59 k perl-Storable x86_64 1:3.11-3.el8 baseos 98 k perl-Term-ANSIColor noarch 4.06-396.el8 baseos 46 k perl-Term-Cap noarch 1.17-395.el8 baseos 23 k perl-Text-ParseWords noarch 3.30-395.el8 baseos 18 k perl-Text-Tabs+Wrap noarch 2013.0523-395.el8 baseos 24 k perl-Time-Local noarch 1:1.280-1.el8 baseos 34 k perl-URI noarch 1.73-3.el8 appstream 116 k perl-Unicode-Normalize x86_64 1.25-396.el8 baseos 82 k perl-constant noarch 1.33-396.el8 baseos 25 k perl-interpreter x86_64 4:5.26.3-419.el8 baseos 6.3 M perl-libnet noarch 3.11-3.el8 appstream 121 k perl-libs x86_64 4:5.26.3-419.el8 baseos 1.6 M perl-macros x86_64 4:5.26.3-419.el8 baseos 72 k perl-parent noarch 1:0.237-1.el8 baseos 20 k perl-podlators noarch 4.11-1.el8 baseos 118 k perl-threads x86_64 1:2.21-2.el8 baseos 61 k perl-threads-shared x86_64 1.58-2.el8 baseos 48 k Installing weak dependencies: perl-IO-Socket-IP noarch 0.39-5.el8 appstream 47 k perl-IO-Socket-SSL noarch 2.066-4.module_el8.4.0+517+be1595ff appstream 298 k perl-Mozilla-CA noarch 20160104-7.module_el8.3.0+416+dee7bcef appstream 15 k Enabling module streams: perl 5.26 perl-IO-Socket-SSL 2.066 perl-libwww-perl 6.34 Transaction Summary ============================================================================================================================================================================================= Install 47 Packages Total download size: 81 M Installed size: 361 M Is this ok [y/N]: y Downloading 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:08 warning: /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: NOKEY MySQL 8.0 Community Server 27 MB/s | 27 kB 00:00 Importing GPG key 0x5072E1F5: Userid : "MySQL Release Engineering <mysql-build@oss.oracle.com>" Fingerprint: A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql Is this ok [y/N]: y Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : mysql-community-common-8.0.25-1.el8.x86_64 1/47 Installing : mysql-community-client-plugins-8.0.25-1.el8.x86_64 2/47 Installing : mysql-community-libs-8.0.25-1.el8.x86_64 3/47 Running scriptlet: mysql-community-libs-8.0.25-1.el8.x86_64 3/47 Installing : mysql-community-client-8.0.25-1.el8.x86_64 4/47 Installing : perl-Digest-1.17-395.el8.noarch 5/47 Installing : perl-Digest-MD5-2.55-396.el8.x86_64 6/47 Installing : perl-Data-Dumper-2.167-399.el8.x86_64 7/47 Installing : perl-libnet-3.11-3.el8.noarch 8/47 Installing : perl-Net-SSLeay-1.88-1.module_el8.4.0+517+be1595ff.x86_64 9/47 Installing : perl-URI-1.73-3.el8.noarch 10/47 Installing : perl-Pod-Escapes-1:1.07-395.el8.noarch 11/47 Installing : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch 12/47 Installing : perl-IO-Socket-IP-0.39-5.el8.noarch 13/47 Installing : perl-Time-Local-1:1.280-1.el8.noarch 14/47 Installing : perl-IO-Socket-SSL-2.066-4.module_el8.4.0+517+be1595ff.noarch 15/47 Installing : perl-Term-ANSIColor-4.06-396.el8.noarch 16/47 Installing : perl-Term-Cap-1.17-395.el8.noarch 17/47 Installing : perl-File-Temp-0.230.600-1.el8.noarch 18/47 Installing : perl-Pod-Simple-1:3.35-395.el8.noarch 19/47 Installing : perl-HTTP-Tiny-0.074-1.el8.noarch 20/47 Installing : perl-podlators-4.11-1.el8.noarch 21/47 Installing : perl-Pod-Perldoc-3.28-396.el8.noarch 22/47 Installing : perl-Text-ParseWords-3.30-395.el8.noarch 23/47 Installing : perl-Pod-Usage-4:1.69-395.el8.noarch 24/47 Installing : perl-MIME-Base64-3.15-396.el8.x86_64 25/47 Installing : perl-Storable-1:3.11-3.el8.x86_64 26/47 Installing : perl-Getopt-Long-1:2.50-4.el8.noarch 27/47 Installing : perl-Errno-1.28-419.el8.x86_64 28/47 Installing : perl-Socket-4:2.027-3.el8.x86_64 29/47 Installing : perl-Encode-4:2.97-3.el8.x86_64 30/47 Installing : perl-Carp-1.42-396.el8.noarch 31/47 Installing : perl-Exporter-5.72-396.el8.noarch 32/47 Installing : perl-libs-4:5.26.3-419.el8.x86_64 33/47 Installing : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 34/47 Installing : perl-parent-1:0.237-1.el8.noarch 35/47 Installing : perl-macros-4:5.26.3-419.el8.x86_64 36/47 Installing : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 37/47 Installing : perl-Unicode-Normalize-1.25-396.el8.x86_64 38/47 Installing : perl-File-Path-2.15-2.el8.noarch 39/47 Installing : perl-IO-1.38-419.el8.x86_64 40/47 Installing : perl-PathTools-3.74-1.el8.x86_64 41/47 Installing : perl-constant-1.33-396.el8.noarch 42/47 Installing : perl-threads-1:2.21-2.el8.x86_64 43/47 Installing : perl-threads-shared-1.58-2.el8.x86_64 44/47 Installing : perl-interpreter-4:5.26.3-419.el8.x86_64 45/47 Installing : net-tools-2.0-0.52.20160912git.el8.x86_64 46/47 Running scriptlet: net-tools-2.0-0.52.20160912git.el8.x86_64 46/47 Running scriptlet: mysql-community-server-8.0.25-1.el8.x86_64 47/47 Installing : mysql-community-server-8.0.25-1.el8.x86_64 47/47 Running 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/47 Verifying : perl-Digest-MD5-2.55-396.el8.x86_64 2/47 Verifying : perl-IO-Socket-IP-0.39-5.el8.noarch 3/47 Verifying : perl-IO-Socket-SSL-2.066-4.module_el8.4.0+517+be1595ff.noarch 4/47 Verifying : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch 5/47 Verifying : perl-Net-SSLeay-1.88-1.module_el8.4.0+517+be1595ff.x86_64 6/47 Verifying : perl-URI-1.73-3.el8.noarch 7/47 Verifying : perl-libnet-3.11-3.el8.noarch 8/47 Verifying : net-tools-2.0-0.52.20160912git.el8.x86_64 9/47 Verifying : perl-Carp-1.42-396.el8.noarch 10/47 Verifying : perl-Data-Dumper-2.167-399.el8.x86_64 11/47 Verifying : perl-Encode-4:2.97-3.el8.x86_64 12/47 Verifying : perl-Errno-1.28-419.el8.x86_64 13/47 Verifying : perl-Exporter-5.72-396.el8.noarch 14/47 Verifying : perl-File-Path-2.15-2.el8.noarch 15/47 Verifying : perl-File-Temp-0.230.600-1.el8.noarch 16/47 Verifying : perl-Getopt-Long-1:2.50-4.el8.noarch 17/47 Verifying : perl-HTTP-Tiny-0.074-1.el8.noarch 18/47 Verifying : perl-IO-1.38-419.el8.x86_64 19/47 Verifying : perl-MIME-Base64-3.15-396.el8.x86_64 20/47 Verifying : perl-PathTools-3.74-1.el8.x86_64 21/47 Verifying : perl-Pod-Escapes-1:1.07-395.el8.noarch 22/47 Verifying : perl-Pod-Perldoc-3.28-396.el8.noarch 23/47 Verifying : perl-Pod-Simple-1:3.35-395.el8.noarch 24/47 Verifying : perl-Pod-Usage-4:1.69-395.el8.noarch 25/47 Verifying : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 26/47 Verifying : perl-Socket-4:2.027-3.el8.x86_64 27/47 Verifying : perl-Storable-1:3.11-3.el8.x86_64 28/47 Verifying : perl-Term-ANSIColor-4.06-396.el8.noarch 29/47 Verifying : perl-Term-Cap-1.17-395.el8.noarch 30/47 Verifying : perl-Text-ParseWords-3.30-395.el8.noarch 31/47 Verifying : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 32/47 Verifying : perl-Time-Local-1:1.280-1.el8.noarch 33/47 Verifying : perl-Unicode-Normalize-1.25-396.el8.x86_64 34/47 Verifying : perl-constant-1.33-396.el8.noarch 35/47 Verifying : perl-interpreter-4:5.26.3-419.el8.x86_64 36/47 Verifying : perl-libs-4:5.26.3-419.el8.x86_64 37/47 Verifying : perl-macros-4:5.26.3-419.el8.x86_64 38/47 Verifying : perl-parent-1:0.237-1.el8.noarch 39/47 Verifying : perl-podlators-4.11-1.el8.noarch 40/47 Verifying : perl-threads-1:2.21-2.el8.x86_64 41/47 Verifying : perl-threads-shared-1.58-2.el8.x86_64 42/47 Verifying : mysql-community-client-8.0.25-1.el8.x86_64 43/47 Verifying : mysql-community-client-plugins-8.0.25-1.el8.x86_64 44/47 Verifying : mysql-community-common-8.0.25-1.el8.x86_64 45/47 Verifying : mysql-community-libs-8.0.25-1.el8.x86_64 46/47 Verifying : mysql-community-server-8.0.25-1.el8.x86_64 47/47 Installed: 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_64 mysql-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_64 perl-Carp-1.42-396.el8.noarch perl-Data-Dumper-2.167-399.el8.x86_64 perl-Digest-1.17-395.el8.noarch perl-Digest-MD5-2.55-396.el8.x86_64 perl-Encode-4:2.97-3.el8.x86_64 perl-Errno-1.28-419.el8.x86_64 perl-Exporter-5.72-396.el8.noarch perl-File-Path-2.15-2.el8.noarch perl-File-Temp-0.230.600-1.el8.noarch perl-Getopt-Long-1:2.50-4.el8.noarch perl-HTTP-Tiny-0.074-1.el8.noarch perl-IO-1.38-419.el8.x86_64 perl-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_64 perl-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_64 perl-Pod-Escapes-1:1.07-395.el8.noarch perl-Pod-Perldoc-3.28-396.el8.noarch perl-Pod-Simple-1:3.35-395.el8.noarch perl-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_64 perl-Storable-1:3.11-3.el8.x86_64 perl-Term-ANSIColor-4.06-396.el8.noarch perl-Term-Cap-1.17-395.el8.noarch perl-Text-ParseWords-3.30-395.el8.noarch perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch perl-Time-Local-1:1.280-1.el8.noarch perl-URI-1.73-3.el8.noarch perl-Unicode-Normalize-1.25-396.el8.x86_64 perl-constant-1.33-396.el8.noarch perl-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_64 perl-macros-4:5.26.3-419.el8.x86_64 perl-parent-1:0.237-1.el8.noarch perl-podlators-4.11-1.el8.noarch perl-threads-1:2.21-2.el8.x86_64 perl-threads-shared-1.58-2.el8.x86_64 Complete! [root@localhost ~]#
開啓MySQL並設置開機自啓
[root@localhost ~]# systemctl start mysqld [root@localhost ~]# systemctl status mysqld ● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2021-06-01 11:32:23 CST; 3s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 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.2M CGroup: /system.slice/mysqld.service └─10360 /usr/sbin/mysqld Jun 01 11:32:19 localhost.localdomain systemd[1]: Starting MySQL Server... Jun 01 11:32:23 localhost.localdomain systemd[1]: Started MySQL Server. [root@localhost ~]# systemctl enable mysqld [root@localhost ~]#
查看MySQL密碼並作修改
[root@localhost ~]# sudo grep 'temporary password' /var/log/mysqld.log 2021-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 -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.25 Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. 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 -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 8.0.25 MySQL Community Server - GPL Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
安裝tcl
[root@localhost ~]# wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz [root@localhost ~]# tar xzvf tcl8.6.1-src.tar.gz [root@localhost ~]# cd tcl8.6.1 [root@localhost tcl8.6.1]# ls ChangeLog ChangeLog.2000 ChangeLog.2002 ChangeLog.2004 ChangeLog.2007 changes doc library license.terms pkgs tests unix ChangeLog.1999 ChangeLog.2001 ChangeLog.2003 ChangeLog.2005 ChangeLog.2008 compat generic libtommath macosx README tools win [root@localhost tcl8.6.1]# cd unix/ [root@localhost unix]# ./configure [root@localhost unix]# make [root@localhost unix]# make install
Redis安裝
[root@localhost ~]# wget http://download.redis.io/releases/redis-5.0.2.tar.gz --2021-06-01 16:19:17-- http://download.redis.io/releases/redis-5.0.2.tar.gz Resolving download.redis.io (download.redis.io)... 45.60.125.1 Connecting to download.redis.io (download.redis.io)|45.60.125.1|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 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 20s 2021-06-01 16:19:38 (94.2 KB/s) - ‘redis-5.0.2.tar.gz’ saved [1952989/1952989] [root@localhost ~]# tar xf redis-5.0.2.tar.gz [root@localhost ~]# cd redis-5.0.2 [root@localhost redis-5.0.2]# ls 00-RELEASENOTES BUGS CONTRIBUTING COPYING deps INSTALL Makefile MANIFESTO README.md redis.conf runtest runtest-cluster runtest-sentinel sentinel.conf src tests utils [root@localhost redis-5.0.2]# [root@localhost redis-5.0.2]# make [root@localhost redis-5.0.2]# make test [root@localhost src]# make install PREFIX=/usr/local/redis [root@localhost redis-5.0.2]# cp redis.conf /usr/local/redis/bin/ [root@localhost bin]# vim redis.conf # daemonize:是否之後臺daemon方式運行。改爲yes [root@localhost bin]# ./redis-server redis.conf
docker版本的安裝,先安裝docker,官方推薦使用docker
[root@localhost ~]# curl -fsSL https://get.docker.com | bash -s docker --mirror aliyun [root@localhost ~]# curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 633 100 633 0 0 646 0 --:--:-- --:--:-- --:--:-- 645 100 10.3M 100 10.3M 0 0 3488k 0 0:00:03 0:00:03 --:--:-- 7845k [root@localhost ~]# chmod +x /usr/local/bin/docker-compose [root@localhost ~]# docker-compose -version docker-compose version 1.21.0, build 5920eb0 [root@localhost ~]#
下載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.gz Resolving 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 OK Length: 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 10s 2021-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.0 fate.tar install_standalone_docker.sh [root@localhost ~]# [root@localhost ~]# systemctl start docker [root@localhost ~]# systemctl enable docker Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service. [root@localhost ~]#
使用腳本一鍵部署安裝
[root@localhost ~]# cd docker_standalone_fate_1.6.0 [root@localhost docker_standalone_fate_1.6.0]# bash install_standalone_docker.sh 4ef54afed780: Loading layer [==================================================>] 119.2MB/119.2MB 6add0d2b5482: Loading layer [==================================================>] 17.1MB/17.1MB d37096232ed8: Loading layer [==================================================>] 17.85MB/17.85MB 17bdf5e22660: Loading layer [==================================================>] 150MB/150MB a995c5106335: Loading layer [==================================================>] 520.4MB/520.4MB 97be79495d2a: Loading layer [==================================================>] 18.5MB/18.5MB b3b4d14f7bc3: Loading layer [==================================================>] 46.27MB/46.27MB 8704124c1733: Loading layer [==================================================>] 4.608kB/4.608kB f9150e47dbd4: Loading layer [==================================================>] 7.771MB/7.771MB e94cd7f7c243: Loading layer [==================================================>] 2.048kB/2.048kB eec950ffde0a: Loading layer [==================================================>] 2.56kB/2.56kB 50cb316bab14: Loading layer [==================================================>] 3.222GB/3.222GB c25d46e1ccab: Loading layer [==================================================>] 207.2MB/207.2MB df5d901d8f7f: Loading layer [==================================================>] 1.364MB/1.364MB 9048f73d0f31: Loading layer [==================================================>] 4.608kB/4.608kB d8294e71fece: Loading layer [==================================================>] 149.5kB/149.5kB d0e3e9491b04: Loading layer [==================================================>] 54.97MB/54.97MB 364689455a57: Loading layer [==================================================>] 1.198GB/1.198GB 01e9ec2515d7: Loading layer [==================================================>] 436.3MB/436.3MB 612d5da431ea: Loading layer [==================================================>] 2.56kB/2.56kB 2ee72f471af7: Loading layer [==================================================>] 2.048kB/2.048kB a30462f24fae: Loading layer [==================================================>] 3.584kB/3.584kB 6d184bc4d38f: Loading layer [==================================================>] 3.584kB/3.584kB 2ae05253db3b: Loading layer [==================================================>] 397.8MB/397.8MB Loaded image: fate:latest REPOSITORY TAG IMAGE ID CREATED SIZE fate latest 31f279e888c0 2 months ago 6.35GB 625c1239a7fe808d895b4e33aedada1594e21da2b1814e4888bffa8c728df4c0 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 625c1239a7fe fate:latest "docker-entrypoint.s…" 1 second ago Up Less than a second 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp fate [root@localhost docker_standalone_fate_1.6.0]#
進入容器內部進行單元測試驗證操做
[root@localhost docker_standalone_fate_1.6.0]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 625c1239a7fe 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 bash root@625c1239a7fe:/fate# root@625c1239a7fe:/fate# root@625c1239a7fe:/fate# bash ./python/federatedml/test/run_test.sh #過程略,文字太多
# 若是成功,屏幕顯示以下: there are 0 failed test
在容器內進行 Toy\_example 測試
root@625c1239a7fe:/fate# python ./examples/toy_example/run_toy_example.py 10000 10000 0 stdout:{ "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 waiting job status is running [INFO] [2021-06-01 06:51:20,467] [3658:140591244445504] - secure_add_guest.py[line:99]: begin to init parameters of secure add example guest [INFO] [2021-06-01 06:51:20,468] [3658:140591244445504] - secure_add_guest.py[line:102]: begin to make guest data [INFO] [2021-06-01 06:51:20,528] [3658:140591244445504] - secure_add_guest.py[line:105]: split data into two random parts [INFO] [2021-06-01 06:51:20,703] [3658:140591244445504] - secure_add_guest.py[line:108]: share one random part data to host [INFO] [2021-06-01 06:51:20,826] [3658:140591244445504] - secure_add_guest.py[line:111]: get share of one random part data from host [INFO] [2021-06-01 06:51:20,939] [3658:140591244445504] - secure_add_guest.py[line:114]: begin to get sum of guest and host [INFO] [2021-06-01 06:51:21,014] [3658:140591244445504] - secure_add_guest.py[line:117]: receive host sum from guest [INFO] [2021-06-01 06:51:21,019] [3658:140591244445504] - secure_add_guest.py[line:124]: success to calculate secure_sum, it is 2000.0000000000005 root@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.gz Resolving 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 OK Length: 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 48s 2021-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: 48s Downloaded: 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.0 bin 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]# ls bin 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
注*:具體版本須要參考該官網文檔,舊的版本官方會刪掉