石家庄微网站建设公司,中国新闻社天津分社招聘,重庆市建设工程施工安全管理总站,抖抈app下载国际版华为泰山服务器的CPU芯片架构为aarch64#xff0c;所装系统为EulerOS 2.0 (SP8)aarch64系统#xff0c;安装saltstack比较困难。本文讲解通过pip安装方式离线安装saltstack3003.1以进行集中化管理和维护。
一、系统环境
1、操作系统版本
[rootlocalhost ~]# cat /etc/os-r…华为泰山服务器的CPU芯片架构为aarch64所装系统为EulerOS 2.0 (SP8)aarch64系统安装saltstack比较困难。本文讲解通过pip安装方式离线安装saltstack3003.1以进行集中化管理和维护。
一、系统环境
1、操作系统版本
[rootlocalhost ~]# cat /etc/os-release
NAMEEulerOS
VERSION2.0 (SP8)
IDeuleros
ID_LIKErhel fedora centos
VERSION_ID2.0
PRETTY_NAMEEulerOS 2.0 (SP8)
ANSI_COLOR0;31
2、python版本及所能识别支持的包信息
[rootlocalhost ~]# python
Python 3.7.0 (default, Mar 16 2020, 00:02:15)
[GCC 7.3.0] on linux
Type help, copyright, credits or license for more information.import pipimport pip._internal.pep425tagsprint(pip._internal.pep425tags.get_supported())
[(cp37, cp37m, linux_aarch64), (cp37, abi3, linux_aarch64), (cp37, none, linux_aarch64), (cp36, abi3, linux_aarch64), (cp35, abi3, linux_aarch64), (cp34, abi3, linux_aarch64), (cp33, abi3, linux_aarch64), (cp32, abi3, linux_aarch64), (py3, none, linux_aarch64), (cp37, none, any), (cp3, none, any), (py37, none, any), (py3, none, any), (py36, none, any), (py35, none, any), (py34, none, any), (py33, none, any), (py32, none, any), (py31, none, any), (py30, none, any)]exit()
[rootlocalhost ~]#
3、服务器CPU架构
[rootlocalhost ~]# uname -m
aarch64 4、操作系统内核信息
[rootlocalhost ~]# rpm -qa |grep kernel
kernel-4.19.36-vhulk1907.1.0.h702.eulerosv2r8.aarch64
kernel-headers-4.19.36-vhulk1907.1.0.h475.eulerosv2r8.aarch64
二、准备相关的软件包
1、软件包内容
[rootlocalhost tmp]# cd salt-pip/
[rootlocalhost salt-pip]# ll
total 13752
-rw-r-----. 1 root root 155255 Sep 18 19:20 certifi-2022.12.7-py3-none-any.whl
-rw-r-----. 1 root root 45489 Sep 18 19:20 charset_normalizer-3.0.1-py3-none-any.whl
-rw-r-----. 1 root root 9570 Sep 18 19:20 contextvars-2.4.tar.gz
-rw-r-----. 1 root root 20315 Sep 18 19:20 distro-1.8.0-py3-none-any.whl
-rw-r-----. 1 root root 61538 Sep 18 19:20 idna-3.4-py3-none-any.whl
-rw-r-----. 1 root root 116441 Sep 18 19:20 immutables-0.19-cp37-cp37m-linux_aarch64.whl
-rw-r-----. 1 root root 133357 Sep 18 19:20 Jinja2-3.0.0-py3-none-any.whl
-rw-r-----. 1 root root 9669 Sep 18 19:20 MarkupSafe-2.1.1-py3-none-any.whl
-rw-r-----. 1 root root 15541 Sep 18 19:20 msgpack-1.0.4-py3-none-any.whl
-rw-r-----. 1 root root 2071041 Sep 18 19:20 pycryptodomex-3.16.0-cp35-abi3-linux_aarch64.whl
-rw-r-----. 1 root root 656952 Sep 18 19:20 PyYAML-6.0-cp37-cp37m-linux_aarch64.whl
-rw-r-----. 1 root root 863287 Sep 18 19:20 pyzmq-25.0.0-cp37-cp37m-linux_aarch64.whl
-rw-r-----. 1 root root 62822 Sep 18 19:20 requests-2.28.2-py3-none-any.whl
-rw-r-----. 1 root root 256 Sep 18 19:20 requirements-euler2.8-salt.txt
-rw-r-----. 1 root root 9654098 Sep 18 19:20 salt-3003.1-py3-none-any.whl
-rw-r-----. 1 root root 26662 Sep 18 19:20 typing_extensions-4.4.0-py3-none-any.whl
-rw-r-----. 1 root root 140642 Sep 18 19:20 urllib3-1.26.14-py2.py3-none-any.whl
2、依赖包描述文件requirements-euler2.8-salt.txt内容
[rootlocalhost salt-pip]# cat requirements-euler2.8-salt.txt
certifi2022.12.7
charset-normalizer3.0.1
contextvars2.4
idna3.4
immutables0.19
Jinja23.0.0
MarkupSafe2.1.1
msgpack1.0.4
pycryptodomex3.16.0
PyYAML6.0
pyzmq25.0.0
requests2.28.2
salt3003.1
typing-extensions4.4.0
urllib31.26.14 三、安装测试
1、编写安装脚本install.sh
#!/bin/bash
##__author__daigjianbingpip3 install --no-index --find-links . -r requirements-euler2.8-salt.txt
which salt-minion
salt --version
targetfile/usr/lib/systemd/system/salt-minion.service
if [ ! -f $targetfile ];thencat $targetfile EOF
##__author__daigjianbing
[Unit]
DescriptionThe Salt Minion
Documentationman:salt-minion(1) file:///usr/share/doc/salt/html/contents.html https://docs.saltstack.com/en/latest/contents.html
Afternetwork.target salt-master.service[Service]
KillModeprocess
Typenotify
NotifyAccessall
LimitNOFILE8192
ExecStart/usr/local/bin/salt-minion[Install]
WantedBymulti-user.target
EOF
fichmod 644 $targetfile
systemctl daemon-reloadif [ ! -d /etc/salt ]; thenmkdir -p /etc/saltchmod 755 /etc/salt
fitargetfile/etc/salt/minion
if [ ! -f $targetfile ];thencat $targetfile EOF
##__author__daigjianbing
master: server
id: test
hash_type: sha256
EOF
fisystemctl enable --now salt-minion
systemctl status salt-minion
2、执行安装
[rootlocalhost salt-pip]# sh install.sh
WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
Looking in links: .
Collecting certifi2022.12.7 (from -r requirements-euler2.8-salt.txt (line 1))
Collecting charset-normalizer3.0.1 (from -r requirements-euler2.8-salt.txt (line 2))
Collecting contextvars2.4 (from -r requirements-euler2.8-salt.txt (line 3))
Collecting idna3.4 (from -r requirements-euler2.8-salt.txt (line 4))
Collecting immutables0.19 (from -r requirements-euler2.8-salt.txt (line 5))
Collecting Jinja23.0.0 (from -r requirements-euler2.8-salt.txt (line 6))
Collecting MarkupSafe2.1.1 (from -r requirements-euler2.8-salt.txt (line 7))
Collecting msgpack1.0.4 (from -r requirements-euler2.8-salt.txt (line 8))
Collecting pycryptodomex3.16.0 (from -r requirements-euler2.8-salt.txt (line 9))
Collecting PyYAML6.0 (from -r requirements-euler2.8-salt.txt (line 10))
Collecting pyzmq25.0.0 (from -r requirements-euler2.8-salt.txt (line 11))
Collecting requests2.28.2 (from -r requirements-euler2.8-salt.txt (line 12))
Collecting salt3003.1 (from -r requirements-euler2.8-salt.txt (line 13))
Collecting typing-extensions4.4.0 (from -r requirements-euler2.8-salt.txt (line 14))
Collecting urllib31.26.14 (from -r requirements-euler2.8-salt.txt (line 15))
Requirement already satisfied: distro1.0.1 in /usr/local/lib/python3.7/site-packages (from salt3003.1--r requirements-euler2.8-salt.txt (line 13)) (1.8.0)
Installing collected packages: certifi, charset-normalizer, typing-extensions, immutables, contextvars, idna, MarkupSafe, Jinja2, msgpack, pycryptodomex, PyYAML, pyzmq, urllib3, requests, salt
Successfully installed Jinja2-3.0.0 MarkupSafe-2.1.1 PyYAML-6.0 certifi-2022.12.7 charset-normalizer-3.0.1 contextvars-2.4 idna-3.4 immutables-0.19 msgpack-1.0.4 pycryptodomex-3.16.0 pyzmq-25.0.0 requests-2.28.2 salt-3003.1 typing-extensions-4.4.0 urllib3-1.26.14
/usr/local/bin/salt-minion
salt 3003.1
Created symlink /etc/systemd/system/multi-user.target.wants/salt-minion.service → /usr/lib/systemd/system/salt-minion.service.
● salt-minion.service - The Salt MinionLoaded: loaded (/usr/lib/systemd/system/salt-minion.service; enabled; vendor preset: disabled)Active: active (running) since Mon 2023-09-18 20:17:21 CST; 11ms agoDocs: man:salt-minion(1)file:///usr/share/doc/salt/html/contents.htmlhttps://docs.saltstack.com/en/latest/contents.htmlMain PID: 291056 (salt-minion)Tasks: 1 (limit: 51200)Memory: 17.0MCGroup: /system.slice/salt-minion.service└─291056 /usr/bin/python3 /usr/local/bin/salt-minionSep 18 20:17:20 localhost systemd[1]: Starting The Salt Minion...
Sep 18 20:17:21 localhost systemd[1]: Started The Salt Minion.
看到 active (running)可见salt-minion服务已正常运行起来了。
四、验证结果
1、验证版本及可执行程序情况
rootlocalhost salt-pip]# salt --version
salt 3003.1
[rootlocalhost salt-pip]# /usr/local/bin/salt-minion --version
salt-minion 3003.1
[rootlocalhost salt-pip]# ll /usr/local/bin/salt*
-rwxr-xr-x. 1 root root 225 Sep 18 20:17 /usr/local/bin/salt
-rwxr-xr-x. 1 root root 223 Sep 18 20:17 /usr/local/bin/salt-api
-rwxr-xr-x. 1 root root 225 Sep 18 20:17 /usr/local/bin/salt-call
-rwxr-xr-x. 1 root root 227 Sep 18 20:17 /usr/local/bin/salt-cloud
-rwxr-xr-x. 1 root root 221 Sep 18 20:17 /usr/local/bin/salt-cp
-rwxr-xr-x. 1 root root 223 Sep 18 20:17 /usr/local/bin/salt-key
-rwxr-xr-x. 1 root root 229 Sep 18 20:17 /usr/local/bin/salt-master
-rwxr-xr-x. 1 root root 229 Sep 18 20:17 /usr/local/bin/salt-minion
-rw-r-----. 1 root root 1027 Sep 18 20:17 /usr/local/bin/salt-proxy
-rwxr-xr-x. 1 root root 223 Sep 18 20:17 /usr/local/bin/salt-run
-rwxr-xr-x. 1 root root 223 Sep 18 20:17 /usr/local/bin/salt-ssh
-rwxr-xr-x. 1 root root 229 Sep 18 20:17 /usr/local/bin/salt-syndic
-rwxr-xr-x. 1 root root 227 Sep 18 20:17 /usr/local/bin/salt-unity 2、核对服务运行情况 如上可见安装已完全成功。
五、相关安装包下载
本人打包好的安装包文件下载 文章转载自: http://www.morning.srgyj.cn.gov.cn.srgyj.cn http://www.morning.owenzhi.com.gov.cn.owenzhi.com http://www.morning.wgrm.cn.gov.cn.wgrm.cn http://www.morning.xcyzy.cn.gov.cn.xcyzy.cn http://www.morning.bfgbz.cn.gov.cn.bfgbz.cn http://www.morning.dgmjm.cn.gov.cn.dgmjm.cn http://www.morning.tnmmp.cn.gov.cn.tnmmp.cn http://www.morning.xnzmc.cn.gov.cn.xnzmc.cn http://www.morning.dfhkh.cn.gov.cn.dfhkh.cn http://www.morning.4q9h.cn.gov.cn.4q9h.cn http://www.morning.jgcxh.cn.gov.cn.jgcxh.cn http://www.morning.gnbfj.cn.gov.cn.gnbfj.cn http://www.morning.gccrn.cn.gov.cn.gccrn.cn http://www.morning.rtlg.cn.gov.cn.rtlg.cn http://www.morning.qkqhr.cn.gov.cn.qkqhr.cn http://www.morning.jjnry.cn.gov.cn.jjnry.cn http://www.morning.lylkh.cn.gov.cn.lylkh.cn http://www.morning.fxqjz.cn.gov.cn.fxqjz.cn http://www.morning.ptwqf.cn.gov.cn.ptwqf.cn http://www.morning.hmbtb.cn.gov.cn.hmbtb.cn http://www.morning.xswrb.cn.gov.cn.xswrb.cn http://www.morning.chhhq.cn.gov.cn.chhhq.cn http://www.morning.tnbas.com.gov.cn.tnbas.com http://www.morning.wkmpx.cn.gov.cn.wkmpx.cn http://www.morning.fhykt.cn.gov.cn.fhykt.cn http://www.morning.rzmlc.cn.gov.cn.rzmlc.cn http://www.morning.nnhrp.cn.gov.cn.nnhrp.cn http://www.morning.jwfkk.cn.gov.cn.jwfkk.cn http://www.morning.tpchy.cn.gov.cn.tpchy.cn http://www.morning.npfkw.cn.gov.cn.npfkw.cn http://www.morning.ctrkh.cn.gov.cn.ctrkh.cn http://www.morning.dmtld.cn.gov.cn.dmtld.cn http://www.morning.rdtp.cn.gov.cn.rdtp.cn http://www.morning.xcyzy.cn.gov.cn.xcyzy.cn http://www.morning.kzhgy.cn.gov.cn.kzhgy.cn http://www.morning.xtqld.cn.gov.cn.xtqld.cn http://www.morning.plflq.cn.gov.cn.plflq.cn http://www.morning.wbxrl.cn.gov.cn.wbxrl.cn http://www.morning.brnwc.cn.gov.cn.brnwc.cn http://www.morning.xxhc.cn.gov.cn.xxhc.cn http://www.morning.jzlfq.cn.gov.cn.jzlfq.cn http://www.morning.xprzq.cn.gov.cn.xprzq.cn http://www.morning.rhjsx.cn.gov.cn.rhjsx.cn http://www.morning.lsgsn.cn.gov.cn.lsgsn.cn http://www.morning.tkzrh.cn.gov.cn.tkzrh.cn http://www.morning.dzpnl.cn.gov.cn.dzpnl.cn http://www.morning.xwbwm.cn.gov.cn.xwbwm.cn http://www.morning.lzsxp.cn.gov.cn.lzsxp.cn http://www.morning.jxlnr.cn.gov.cn.jxlnr.cn http://www.morning.bpmfn.cn.gov.cn.bpmfn.cn http://www.morning.mwns.cn.gov.cn.mwns.cn http://www.morning.nqwz.cn.gov.cn.nqwz.cn http://www.morning.srrrz.cn.gov.cn.srrrz.cn http://www.morning.mkbc.cn.gov.cn.mkbc.cn http://www.morning.mmjqk.cn.gov.cn.mmjqk.cn http://www.morning.zwzlf.cn.gov.cn.zwzlf.cn http://www.morning.kbynw.cn.gov.cn.kbynw.cn http://www.morning.xgcwm.cn.gov.cn.xgcwm.cn http://www.morning.pphbn.cn.gov.cn.pphbn.cn http://www.morning.kjjbz.cn.gov.cn.kjjbz.cn http://www.morning.jqkjr.cn.gov.cn.jqkjr.cn http://www.morning.yqgny.cn.gov.cn.yqgny.cn http://www.morning.ldynr.cn.gov.cn.ldynr.cn http://www.morning.rdnjc.cn.gov.cn.rdnjc.cn http://www.morning.pmxw.cn.gov.cn.pmxw.cn http://www.morning.pfcrq.cn.gov.cn.pfcrq.cn http://www.morning.kbdrq.cn.gov.cn.kbdrq.cn http://www.morning.ntgjm.cn.gov.cn.ntgjm.cn http://www.morning.jqrhz.cn.gov.cn.jqrhz.cn http://www.morning.mzzqs.cn.gov.cn.mzzqs.cn http://www.morning.msbmp.cn.gov.cn.msbmp.cn http://www.morning.mbdbe.cn.gov.cn.mbdbe.cn http://www.morning.tqfnf.cn.gov.cn.tqfnf.cn http://www.morning.scjtr.cn.gov.cn.scjtr.cn http://www.morning.hdzty.cn.gov.cn.hdzty.cn http://www.morning.plnry.cn.gov.cn.plnry.cn http://www.morning.splkk.cn.gov.cn.splkk.cn http://www.morning.msgrq.cn.gov.cn.msgrq.cn http://www.morning.ltywr.cn.gov.cn.ltywr.cn http://www.morning.sftpg.cn.gov.cn.sftpg.cn