目录

环境

SaltStack模块介绍

SaltStack常用模块之network

network.active_tcp

network.calc_net

network.connect

network.default_route

network.get_fqdn

network.get_hostname

network.get_route

network.hw_addr

network.ifacestartswith

 network.in_subnet

network.interface

network.interface_ip

network.interfaces

network.ip_addrs

network.netstat

network.ping

SaltStack常用模块之service

service.available

service.get_all

 service.disabled

service.enabled

service.reload

service.stop

service.start

service.restart

service.status

SaltStack常用模块之pkg

 pkg.file_list

pkg.group_info

pkg.group_list

pkg.list_downloaded

 pkg.install

 pkg.list_pkgs

pkg.owner

 pkg.remove

pkg.upgrade

SaltStack常用模块之state

 state.show_highstate

 state.show_state_usage

state.show_top

state.top

state.show_sls

SaltStack常用模块之user


环境

master192.168.75.128
node1192.168.75.150
node2192.168.75.142
node3192.168.75.143

主要使用master和node1两台主机

SaltStack模块介绍

Module是日常使用SaltStack接触最多的一个组件,其用于管理对象操作,这也是SaltStack通过Push的方式进行管理的入口,比如我们日常简单的执行命令、查看包安装情况、查看服务运行情况等工作都是通过SaltStack Module来实现的。

当安装好Master和Minion包后,系统上会安装很多Module,大家可以通过以下命令查看支持的所有Module列表

[root@master ~]# salt '*' test.ping
node2:True
node1:True
node3:True
master:True
[root@master ~]# //查看node1主机所有module列表
node1:- acl- aliases- alternatives- apache- archive- artifactory- at......- vbox_guest- virtualenv- vsphere- webutil- xfs- zenoss//查看指定module的所有function
[root@master ~]# salt 'node1' sys.list_functions cmd
node1:- cmd.exec_code- cmd.exec_code_all- cmd.has_exec- cmd.powershell- cmd.powershell_all- cmd.retcode- cmd.run- cmd.run_all- cmd.run_bg- cmd.run_chroot- cmd.run_stderr- cmd.run_stdout- cmd.script- cmd.script_retcode- cmd.shell- cmd.shell_info- cmd.shells- cmd.tty- cmd.which- cmd.which_bin//查看指定module的用法
[root@master ~]# salt 'node1' sys.doc user
user.add:Add a user to the minionnameUsername LOGIN to adduidUser ID of the new accountgidName or ID of the primary group of the new accountgroupsList of supplementary groups of the new accounthomeHome directory of the new accountshellLogin shell of the new accountuniqueIf not True, the user account can have a non-unique UIDsystemCreate a system accountfullnameGECOS field for the full nameroomnumberGECOS field for the room numberworkphoneGECOS field for the work phonehomephoneGECOS field for the home phoneotherGECOS field for other informationcreatehomeCreate the user's home directoryloginclassLogin class for the new account (OpenBSD)nologinitDo not add the user to the lastlog and faillog databasesrootDirectory to chroot intousergroupCreate and add the user to a new primary group of the same nameCLI Example:salt '*' user.add name <uid> <gid> <groups> <home> <shell>user.chfullname:Change the user's Full NamenameUser to modifyfullnameGECOS field for the full namerootDirectory to chroot intoCLI Example:salt '*' user.chfullname foo "Foo Bar"user.chgid:Change the default group of the usernameUser to modifygidForce use GID as new primary grouprootDirectory to chroot intoCLI Example:salt '*' user.chgid foo 4376user.chgroups:Change the groups to which this user belongsnameUser to modifygroupsGroups to set for the userappend : FalseIf ``True``, append the specified group(s). Otherwise, this functionwill replace the user's groups with the specified group(s).rootDirectory to chroot intoCLI Examples:salt '*' user.chgroups foo wheel,rootsalt '*' user.chgroups foo wheel,root append=Trueuser.chhome:Change the home directory of the user, pass True for persist to move filesto the new home directory if the old home directory exist.nameUser to modifyhomeNew home directory for the user accountpersistMove contents of the home directory to the new locationrootDirectory to chroot intoCLI Example:salt '*' user.chhome foo /home/users/foo Trueuser.chhomephone:Change the user's Home PhonenameUser to modifyhomephoneGECOS field for the home phonerootDirectory to chroot intoCLI Example:salt '*' user.chhomephone foo 7735551234user.chloginclass:Change the default login class of the usernameUser to modifyloginclassLogin class for the new accountrootDirectory to chroot intoNote:This function only applies to OpenBSD systems.CLI Example:salt '*' user.chloginclass foo staffuser.chother:Change the user's other GECOS attributenameUser to modifyotherGECOS field for other informationrootDirectory to chroot intoCLI Example:salt '*' user.chother foobaruser.chroomnumber:Change the user's Room NumberCLI Example:salt '*' user.chroomnumber foo 123user.chshell:Change the default shell of the usernameUser to modifyshellNew login shell for the user accountrootDirectory to chroot intoCLI Example:salt '*' user.chshell foo /bin/zshuser.chuid:Change the uid for a named usernameUser to modifyuidNew UID for the user accountrootDirectory to chroot intoCLI Example:salt '*' user.chuid foo 4376user.chworkphone:Change the user's Work PhonenameUser to modifyworkphoneGECOS field for the work phonerootDirectory to chroot intoCLI Example:salt '*' user.chworkphone foo 7735550123user.delete:Remove a user from the minionnameUsername to deleteremoveRemove home directory and mail spoolforceForce some actions that would fail otherwiserootDirectory to chroot intoCLI Example:salt '*' user.delete name remove=True force=Trueuser.get_loginclass:Get the login class of the usernameUser to get the informationNote:This function only applies to OpenBSD systems.CLI Example:salt '*' user.get_loginclass foouser.getent:Return the list of all info for all usersrefreshForce a refresh of user informationrootDirectory to chroot intoCLI Example:salt '*' user.getentuser.info:Return user informationnameUser to get the informationrootDirectory to chroot intoCLI Example:salt '*' user.info rootuser.list_groups:Return a list of groups the named user belongs tonameUser to get the informationCLI Example:salt '*' user.list_groups foouser.list_users:Return a list of all usersrootDirectory to chroot intoCLI Example:salt '*' user.list_usersuser.primary_group:Return the primary group of the named userNew in version 2016.3.0nameUser to get the informationCLI Example:salt '*' user.primary_group saltadminuser.rename:Change the username for a named usernameUser to modifynew_nameNew value of the login namerootDirectory to chroot intoCLI Example:salt '*' user.rename name new_name[root@master ~]# //SaltStack默认也支持一次执行多个Module,Module之间通过逗号隔开,默认传参之间也是用逗号分隔,也支持指定传参分隔符号--args-separator=@即可
[root@master ~]# salt 'node1' test.echo,cmd.run,service.status hello,hostname,salt-minion
node1:----------cmd.run:node1service.status:Truetest.echo:hello

SaltStack常用模块之network

network.active_tcp

返回所有活动的tcp连接

[root@master ~]# salt 'node1' network.active_tcp
node1:----------0:----------local_addr:192.168.75.150local_port:34226remote_addr:192.168.75.128remote_port:4505

network.calc_net

通过IP和子网掩码计算出网段

[root@master ~]# salt 'node1' network.calc_net 192.168.75.255 255.255.255.0
node1:192.168.75.0/24
[root@master ~]# 

network.connect

测试minion至某一台服务器的网络是否连通

//ping www.biying.cn网站
[root@master ~]# salt 'node1' network.connect biying.cn 80
node1:----------comment:Successfully connected to biying.cn (202.89.233.101) on tcp port 80result:True
[root@master ~]# 

network.default_route

查看默认路由

[root@master ~]# salt 'node1' network.default_route
node1:|_----------addr_family:inetdestination:0.0.0.0flags:UGgateway:192.168.75.2interface:ens33netmask:0.0.0.0
[root@master ~]# 

network.get_fqdn

查看主机的fqdn(完全限定域名)

[root@master ~]# salt '*' network.get_fqdn
master:master
node2:node2
node1:node1
node3:node3

network.get_hostname

获取主机名

[root@master ~]# salt '*' network.get_hostname
node1:node1
node3:node3
node2:node2
master:master

network.get_route

查询到一个目标网络的路由信息

[root@master ~]# salt 'node1' network.get_route 192.168.75.150
node1:----------destination:192.168.75.150gateway:Noneinterface:losource:192.168.75.150

network.hw_addr

返回指定网卡的MAC地址

[root@master ~]# salt '*' network.hw_addr ens33
node1:00:0c:29:bf:1c:fe
node2:00:0c:29:37:f5:bc
node3:Interface "ens33" not in available interfaces: "lo", "ens160", "virbr0", "virbr0-nic"
master:Interface "ens33" not in available interfaces: "lo", "ens160", "virbr0", "virbr0-nic"
[root@master ~]# 

network.ifacestartswith

从特定CIDR检索接口名称

[root@master ~]# salt '*' network.ifacestartswith 192.168
node2:- ens33
node1:- ens33
node3:- ens160- virbr0
master:- ens160- virbr0

 network.in_subnet

判断当前主机是否在某一个网段内

[root@master ~]# salt 'node1' network.in_subnet 192.168.66.0/24
node1:False
[root@master ~]# salt 'node1' network.in_subnet 192.168.75.0/24
node1:True
[root@master ~]# 

network.interface

返回指定网卡的信息

[root@master ~]# salt '*' network.interface ens33
node2:|_----------address:192.168.75.142broadcast:192.168.75.255label:ens33netmask:255.255.255.0
node1:|_----------address:192.168.75.150broadcast:192.168.75.255label:ens33netmask:255.255.255.0
node3:Interface "ens33" not in available interfaces: "lo", "ens160", "virbr0", "virbr0-nic"
master:Interface "ens33" not in available interfaces: "lo", "ens160", "virbr0", "virbr0-nic"
[root@master ~]# 

network.interface_ip

返回指定网卡的IP地址

[root@master ~]# salt '*' network.interface_ip ens33
node1:192.168.75.150
node2:192.168.75.142
node3:Interface "ens33" not in available interfaces: "lo", "ens160", "virbr0", "virbr0-nic"
master:Interface "ens33" not in available interfaces: "lo", "ens160", "virbr0", "virbr0-nic"
[root@master ~]# 

network.interfaces

返回当前系统中所有的网卡信息

[root@master ~]# salt 'node1' network.interfaces
node1:----------ens33:----------hwaddr:00:0c:29:bf:1c:feinet:|_----------address:192.168.75.150broadcast:192.168.75.255label:ens33netmask:255.255.255.0inet6:|_----------address:fe80::5e93:d112:1456:d433prefixlen:64scope:linkup:Truelo:----------hwaddr:00:00:00:00:00:00inet:|_----------address:127.0.0.1broadcast:Nonelabel:lonetmask:255.0.0.0inet6:|_----------address:::1prefixlen:128scope:hostup:True
[root@master ~]# 

network.ip_addrs

返回一个IPv4的地址列表
该函数将会忽略掉127.0.0.1的地址

[root@master ~]# salt '*' network.ip_addrs
node2:- 192.168.75.142
node1:- 192.168.75.150
node3:- 192.168.75.143- 192.168.122.1
master:- 192.168.75.128- 192.168.122.1

network.netstat

返回所有打开的端口和状态

[root@master ~]# salt 'node1' network.netstat
node1:|_----------inode:17757local-address:127.0.0.1:323program:chronydproto:udprecv-q:0remote-address:*:*send-q:0user:0|_----------inode:17926local-address:*:68program:dhclientproto:udprecv-q:0remote-address:*:*send-q:0user:0|_----------inode:17758local-address:::1:323program:chronydproto:udprecv-q:0remote-address::::*send-q:0user:0|_----------inode:21627local-address:*:22program:sshdproto:tcprecv-q:0remote-address:*:*send-q:128state:LISTENuser:0|_----------inode:22571local-address:127.0.0.1:25program:masterproto:tcprecv-q:0remote-address:*:*send-q:100state:LISTENuser:0|_----------inode:21322local-address:192.168.75.150:34226program:salt-minionproto:tcprecv-q:0remote-address:192.168.75.128:4505send-q:0state:ESTABLISHEDuser:0|_----------inode:0local-address:192.168.75.150:54972program:proto:tcprecv-q:0remote-address:192.168.75.128:4506send-q:0state:TIME-WAITuser:0|_----------inode:0local-address:192.168.75.150:54974program:proto:tcprecv-q:0remote-address:192.168.75.128:4506send-q:0state:TIME-WAITuser:0|_----------inode:21629local-address::::22program:sshdproto:tcprecv-q:0remote-address::::*send-q:128state:LISTENuser:0|_----------inode:22572local-address:::1:25program:masterproto:tcprecv-q:0remote-address::::*send-q:100state:LISTENuser:0
[root@master ~]#

network.ping

使用ping命令测试到某主机的连通性

[root@master ~]# salt 'node1' network.ping biying.cn
node1:PING biying.cn (202.89.233.101) 56(84) bytes of data.64 bytes from 202.89.233.101 (202.89.233.101): icmp_seq=1 ttl=128 time=27.8 ms64 bytes from 202.89.233.101 (202.89.233.101): icmp_seq=2 ttl=128 time=160 ms64 bytes from 202.89.233.101 (202.89.233.101): icmp_seq=3 ttl=128 time=38.2 ms64 bytes from 202.89.233.101 (202.89.233.101): icmp_seq=4 ttl=128 time=50.2 ms--- biying.cn ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 3004msrtt min/avg/max/mdev = 27.859/69.175/160.375/53.247 ms

SaltStack常用模块之service

service.available

判断指定的服务是否可用

[root@master ~]# salt '*' service.available sshd
node2:True
node3:True
node1:True
master:True
[root@master ~]# salt '*' service.available nginx
node3:False
node2:True
node1:False
master:False

service.get_all

获取所有正在运行的服务

[root@master ~]# salt 'node1' service.get_all
node1:- NetworkManager- NetworkManager-dispatcher- NetworkManager-wait-online- auditd
......

 service.disabled

检查指定服务是否开机不自动启动

[root@master ~]# salt 'node2' service.disabled nginx
node2:True
[root@master ~]# 

service.enabled

检查指定服务是否开机自动启动

[root@master ~]# salt 'node1' service.enable httpd
node1:True

service.reload

重新加载指定服务

[root@master ~]# salt 'node2' service.reload nginx
node2:True

service.stop

停止指定服务

[root@master ~]# salt 'node2' service.stop nginx
node2:True

service.start

启动指定服务

[root@master ~]# salt 'node2' service.start nginx
node2:True

service.restart

重启指定服务

[root@master ~]# salt 'node2' service.restart nginx
node2:True

service.status

查看指定服务的状态

[root@master ~]# salt 'node2' service.status nginx
node2:True

SaltStack常用模块之pkg

 pkg.download

只下载软件包但不安装
此功能将会下载指定的软件包,但是需要在minion端安装yum-utils,可以使用 cmd.run 进行远程安装

[root@master ~]# salt '*' pkg.download wget
master:----------wget:/var/cache/yum/packages/wget-1.19.5-10.el8.x86_64.rpm
node2:----------wget:/var/cache/yum/packages/wget-1.19.5-10.el8.x86_64.rpm
node3:----------wget:/var/cache/yum/packages/wget-1.19.5-10.el8.x86_64.rpm
node1:----------wget:/var/cache/yum/packages/wget-1.14-18.el7_6.1.x86_64.rpm

 pkg.file_list

列出指定包或系统中已安装的所有包的文件

[root@master ~]# salt 'node1' pkg.file_list httpd
node1:----------errors:files:- /etc/httpd- /etc/httpd/conf- /etc/httpd/conf.d- /etc/httpd/conf.d/README- /etc/httpd/conf.d/autoindex.conf- /etc/httpd/conf.d/userdir.conf- /etc/httpd/conf.d/welcome.conf- /etc/httpd/conf.modules.d- /etc/httpd/conf.modules.d/00-base.conf- /etc/httpd/conf.modules.d/00-dav.conf- /etc/httpd/conf.modules.d/00-lua.conf- /etc/httpd/conf.modules.d/00-mpm.conf- /etc/httpd/conf.modules.d/00-proxy.conf- /etc/httpd/conf.modules.d/00-systemd.conf- /etc/httpd/conf.modules.d/01-cgi.conf- /etc/httpd/conf/httpd.conf- /etc/httpd/conf/magic- /etc/httpd/logs
......//当不提供参数时,将会列出当前系统中所有已安装软件的文件列表
[root@master ~]# salt 'node1' pkg.file_list 
node1:----------errors:files:VALUE_TRIMMED

pkg.group_info

查看包组的信息

[root@master ~]# salt 'node1' pkg.group_info 'Development Tools'
node1:----------conditional:default:- byacc- cscope- ctags- diffstat- doxygen- elfutils- gcc-gfortran- git- indent- intltool- patchutils- rcs- subversion- swig- systemtapdescription:A basic development environment.group:Development Toolsid:developmentmandatory:- autoconf- automake- binutils- bison- flex- gcc- gcc-c++- gettext- libtool- make- patch- pkgconfig- redhat-rpm-config- rpm-build- rpm-signoptional:- ElectricFence- ant- babel- bzr- ccache- chrpath- clips- clips-devel- clips-doc- clips-emacs- clips-xclips- clipsmm-devel- clipsmm-doc- cmake- cmucl- colordiff- compat-gcc-44- compat-gcc-44-c++- cvs- cvsps- darcs- dejagnu- email2trac- expect- ftnchek- gcc-gnat- gcc-objc- gcc-objc++- ghc- git- haskell-platform- imake- javapackages-tools- ksc- lua- mercurial- mock- mod_dav_svn- nasm- nqc- nqc-doc- ocaml- perltidy- qgit- rpmdevtools- rpmlint- sbcl- scorep- systemtap-sdt-devel- systemtap-server- trac- trac-git-plugin- trac-mercurial-plugin- trac-webadmin- translate-toolkittype:package group
[root@master ~]# 

pkg.group_list

列出系统中所有的包组

[root@master ~]# salt 'node1' pkg.group_list
node1:----------available:- Additional Development- Anaconda Tools- Backup Client- Backup Server- Base- Buildsystem building group- CentOS Linux Client product core- CentOS Linux ComputeNode product core- CentOS Linux Server product core- CentOS Linux Workstation product core- Cinnamon- Common NetworkManager submodules- Compatibility Libraries- Conflicts (Client)- Conflicts (ComputeNode)- Conflicts (Server)- Conflicts (Workstation)- Console Internet Tools- Core- DNS Name Server- Debugging Tools- Desktop Debugging and Performance Tools- Development Tools- Dial-up Networking Support- Directory Client- Directory Server- E-mail Server- Educational Software- Electronic Lab- Emacs- FTP Server- Fedora Packager- File and Storage Server- Fonts- GNOME- GNOME Applications- General Purpose Desktop- Graphical Administration Tools- Graphics Creation Tools- Guest Agents- Guest Desktop Agents- Hardware Monitoring Utilities- Haskell- High Availability- Hyper-v platform specific packages- Identity Management Server- Infiniband Support- Input Methods- Internet Applications- Internet Browser- Java Platform- KDE- KDE Applications- KDE Multimedia Support- KVM platform specific packages- LXQt Desktop- Large Systems Performance- Legacy UNIX Compatibility- Legacy X Window System Compatibility- Load Balancer- MATE- Mainframe Access- MariaDB Database Client- MariaDB Database Server- Milkymist- Multimedia- Network File System Client- Network Infrastructure Server- Networking Tools- Office Suite and Productivity- PHP Support- Performance Tools- Perl Support- Perl for Web- Platform Development- PostgreSQL Database Client- PostgreSQL Database Server- Print Server- Printing Client- Python- Remote Desktop Clients- Remote Management for Linux- Resilient Storage- Ruby Support- Scientific Support- Security Tools- Smart Card Support- System Administration Tools- System Management- Technical Writing- TurboGears application framework- VMware platform specific packages- Virtualization Client- Virtualization Hypervisor- Virtualization Platform- Virtualization Tools- Web Server- Web Servlet Engine- X Window System- Xfceavailable environments:- Minimal Install- Compute Node- Infrastructure Server- File and Print Server- Cinnamon Desktop- MATE Desktop- Basic Web Server- Virtualization Host- Server with GUI- GNOME Desktop- KDE Plasma Workspaces- Development and Creative Workstationavailable languages:----------installed:installed environments:
[root@master ~]# 

pkg.list_downloaded

列出已下载到本地的软件包

[root@master ~]# salt 'node1' pkg.list_downloaded
node1:----------wget:----------1.14-18.el7_6.1:----------creation_date_time:2021-11-03T15:09:58creation_date_time_t:1635923398path:/var/cache/yum/packages/wget-1.14-18.el7_6.1.x86_64.rpmsize:560272
[root@master ~]# 

 pkg.install

安装软件

[root@master ~]# salt 'node3' pkg.install nginx
node3:----------nginx:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:nginx-all-modules:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:nginx-filesystem:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:nginx-mod-http-image-filter:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:nginx-mod-http-perl:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:nginx-mod-http-xslt-filter:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:nginx-mod-mail:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:nginx-mod-stream:----------new:1:1.14.1-9.module_el8.0.0+184+e34fea82old:
[root@master ~]# 

 pkg.list_pkgs

以字典的方式列出当前已安装的软件包

[root@master ~]# salt 'node1' pkg.list_pkgs
node1:----------GeoIP:1.5.0-11.el7NetworkManager:1:1.10.2-13.el7NetworkManager-libnm:1:1.10.2-13.el7NetworkManager-team:1:1.10.2-13.el7NetworkManager-tui:1:1.10.2-13.el7acl:
......

pkg.owner

列出指定文件是由哪个包提供的

[root@master ~]# salt 'node2' pkg.owner /usr/sbin/nginx
node2:nginx

 pkg.remove

卸载指定软件

[root@master ~]# salt 'node1' pkg.remove httpd
node1:----------httpd:----------new:old:2.4.6-97.el7.centos.1
//若要卸载多个文件,中间需要用逗号隔开

pkg.upgrade

升级系统中所有的软件包或升级指定的软件包

[root@master ~]# salt 'node1' pkg.upgrade name=openssl
node1:----------openssl:----------new:1:1.0.2k-22.el7_9old:1:1.0.2k-12.el7openssl-libs:----------new:1:1.0.2k-22.el7_9old:1:1.0.2k-12.el7

SaltStack常用模块之state

 state.show_highstate

显示当前系统中有哪些高级状态

[root@master ~]# salt '*' state.show_highstate
node1:----------mysql-install:----------__env__:base__sls__:database.mariadb.installpkg:|_----------name:mariadb-server- installed|_----------order:10000mysql-service:----------__env__:base__sls__:database.mariadb.installservice:|_----------name:mariadb|_----------enable:ture- running|_----------order:10001
node3:----------mysql-install:----------__env__:base__sls__:database.mariadb.installpkg:|_----------name:mariadb-server- installed|_----------order:10000mysql-service:----------__env__:base__sls__:database.mariadb.installservice:|_----------name:mariadb|_----------enable:ture- running|_----------order:10001
master:----------mysql-install:----------__env__:base__sls__:database.mariadb.installpkg:|_----------name:mariadb-server- installed|_----------order:10000mysql-service:----------__env__:base__sls__:database.mariadb.installservice:|_----------name:mariadb|_----------enable:ture- running|_----------order:10001
node2:----------mysql-install:----------__env__:base__sls__:database.mariadb.installpkg:|_----------name:mariadb-server- installed|_----------order:10000mysql-service:----------__env__:base__sls__:database.mariadb.installservice:|_----------name:mariadb|_----------enable:ture- running|_----------order:10001
[root@master ~]# 

 state.show_state_usage

显示当前系统中的高级状态执行情况

[root@master ~]# salt 'node1' state.show_state_usage
node1:----------base:----------count_all:2count_unused:1count_used:1unused:- topused:- web.apache.installtest:----------count_all:0count_unused:0count_used:0unused:used:

state.show_top

返回minion将用于highstate的顶级数据

[root@master ~]# salt 'node1' state.show_top
node1:----------base:- web.apache.apache

state.top

执行指定的top file,而不是默认的

[root@master ~]# salt 'node1' state.show_sls web.apache.install
node1:----------apache-install:----------__env__:base__sls__:web.apache.installpkg:|_----------name:httpd- installed|_----------order:10000apache-service:----------__env__:base__sls__:web.apache.installservice:|_----------name:httpd|_----------enable:True- running|_----------order:10001

state.show_sls

显示 master 上特定sls或sls文件列表中的状态数据

[root@master salt]# salt 'node1' state.show_sls web.apache.install
node1:----------apache-install:----------__env__:base__sls__:web.apache.installpkg:|_----------name:httpd- installed|_----------order:10000apache-service:----------__env__:base__sls__:web.apache.installservice:|_----------name:httpd|_----------enable:ture- running|_----------order:10001
[root@master salt]# 

SaltStack常用模块之user

user.add

创建用户

[root@master ~]# salt 'node1' user.add yang
node1:True
[root@master ~]# salt 'node1' cmd.run 'id yang'
node1:uid=1001(yang) gid=1001(yang) groups=1001(yang)

user.chuid

更改用户uid

[root@master ~]# salt 'node1' user.chuid yang 666
node1:True
[root@master ~]# salt 'node1' cmd.run 'id yang'
node1:uid=666(yang) gid=1001(yang) groups=1001(yang)

user.chgid

更改用户gid

[root@master ~]# salt 'node1' user.chgid yang 888
node1:True
[root@master ~]# salt 'node1' cmd.run 'id yang'
node1:uid=666(yang) gid=1001(yang) groups=888(yang)

user.chgroups

更改用户属组,追加指定用户组

[root@master ~]# salt 'node1' user.chgroups yang root true
node1:True
[root@master ~]# salt 'node1' cmd.run 'id yang'
node1:uid=666(yang) gid=1001(yang) groups=888(yang),0(root)

user.delete

删除用户

[root@master ~]# salt 'node1' user.delete yang remove=True force=True
node1:True
[root@master ~]# salt 'node1' cmd.run 'id yang'
node1:id: yang: no such user
ERROR: Minions returned with non-zero exit code

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. P1567 统计天数 python代码

    n int(input()) c list(map(int,input().split(" "))) maxs [] counts 1 for index in range(n-1):if c[index] < c[index1]:counts 1else:maxs.append(counts)counts 1 # 再添加一次 防止有一直增加的情况 不能执行else maxs.append(counts) print(max(ma…...

    2024/4/19 18:09:57
  2. SpringCloud学习笔记<1>

    文章目录一、入门1.maven下载jar包太慢&#xff1f;2.如何在官网下载旧版本的maven&#xff1f;3.父工程pom、yml&#xff1f;4.data AllArgsconstructor NoArgsconstructor 注解失效解决方法5.配置数据源&#xff1f;6.Mybatis中javaType和jdbcType对应关系7.加时区&#xff1…...

    2024/4/16 20:33:17
  3. MH\MR编码实现(图像压缩)

    最近老师布置了要求实现MH\MR编码&#xff0c;但是比较奇怪的是&#xff0c;在网络上上关于这方面的资料很少&#xff0c;而且基本是介绍方法&#xff0c;没有对具体的编码进行介绍。&#xff08;先挖个坑&#xff0c;上传编码上去&#xff0c;以后再具体介绍&#xff0c;代码中…...

    2024/4/17 15:34:49
  4. SpringBoot 集成FluentMybatis 框架

    FluentMybatis特性 FluentMybatis原理 项目搭建 pom.xml 添加fluent-mybatis依赖 <properties><java.version>1.8</java.version><maven-jar-plugin.version>3.1.1</maven-jar-plugin.version><fluent-mybatis.version>1.8.7</fluent-…...

    2024/4/20 5:48:18
  5. 约瑟夫环问题的一般性解答

    注&#xff1a;本代码仅供参考&#xff0c;如果发生学术问题博主概不负责。 题目&#xff1a; N个人围成一圈&#xff0c;从第S个开始报数&#xff0c;每隔第M个将被杀掉&#xff0c;最后剩下X个&#xff0c;其余人都将被杀掉。例如N6&#xff0c;S1&#xff0c;M5&#xff0c;…...

    2024/4/24 5:06:14
  6. javascript_案例6表单检验

    <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>注册页面</title> <style>*{margin: 0px;padding: 0px;box-sizing: border-box;}body{background: url("img/register_bg.png")…...

    2024/4/15 6:38:52
  7. Alliance Advisors拓展在亚洲地区的业务

    任命新的香港和中国大陆业务发展副总裁 香港--(美国商业资讯)--全球领先的代理权征集和企业咨询公司Alliance Advisors欣然宣布&#xff0c;Gilbert Tam已加入Alliance的香港团队&#xff0c;担任业务发展副总裁。 Alliance亚太区负责人Ted Wallace表示&#xff1a;“随着我们不…...

    2024/4/24 14:42:07
  8. 每年的智能车竞赛赛道是如何产生的?

    简 介&#xff1a; 介绍了全国大学生智能车赛道设计的过程。 关键词&#xff1a; 智能车竞赛&#xff0c;赛道设计&#xff0c;车模 01 统一赛道设计每年全国大学生智能车竞赛考察了参赛同学们制作的车模作品在现场赛道上运行的性能。经过了一个多学期的准备&#xff0c;同学们…...

    2024/4/15 6:38:22
  9. Effective C++ 笔记(六)

    六&#xff1a;继承与面向对象设计 条款32&#xff1a;确定你的public继承塑模出is-a关系 如果你令class B&#xff08;派生类&#xff09;以public形式继承class A&#xff08;父类&#xff09;&#xff0c;你便是告诉C编译器说&#xff0c;每一个类型为D的对象同时也是一个类…...

    2024/4/19 17:18:27
  10. Docker从入门到干事,看这一篇就够了

    安装docker 鉴于同学们用的设备都不一样&#xff0c;不能让大家在第一步就被劝退&#xff0c;所以三个平台的安装方式都准备了&#xff0c;请自行选择。 不推荐在windows安装 mac 命令行安装 需要先安装homebrew homebrew国内镜像 /bin/zsh -c "$(curl -fsSL https://gi…...

    2024/4/20 20:08:16
  11. ubuntu16.04 install Android Studio

    操作步骤&#xff1a; 将您下载的 .zip 文件解压缩到您应用的相应位置&#xff0c;例如 /usr/local/ 中&#xff08;用于用户个人资料&#xff09;或者 /opt/ 中&#xff08;用于共享用户&#xff09;。 如果您使用的是 64 位版本的 Linux&#xff0c;请确保首先安装 64 位计算…...

    2024/4/7 0:18:26
  12. Scanner类

    用户交互Scanner 基本语法中并没有实现程序和人的交互&#xff0c;但是Java提供了一个工具类&#xff0c;可以获取用户的输入。java.util.Scanner是Java5的新特征&#xff0c;可以通过Scanner类来获取用户的输入。 通过Scanner类的next()与nextLine()方法获取输入的字符串&…...

    2024/4/25 18:16:44
  13. 可用版本 10分钟不断电,抖动也较小

    //包含C++常用头文件 #include <iostream> #include <sstream>//-->std::stringstream ss; #include <fstream>//保存数据到txt #include <cstdio>...

    2024/4/25 20:28:54
  14. vue+element 表格 删除 批量删除

    效果图 以作物表为例 这里有【批量删除】和【删除】 是 啊...

    2024/4/19 16:41:16
  15. 一个简单的指示灯控件开发过程

    指示灯控件是上位机开发中常用的一个控件&#xff0c;下面针对这个控件的开发给大家做下具体介绍&#xff1a; 控件的开发都是由简单到复杂的&#xff0c;所以整个开发过程是这样的&#xff1a; 首先是最原始的一个指示灯&#xff0c;其实就是一个填充了颜色的圆形&#xff0c;…...

    2024/4/25 18:28:09
  16. Stata安装外部命令报错stacktrace not available

    解决办法&#xff1a;Stata的安装文件夹都需要是英文的&#xff0c;不能有中文字符&#xff0c;换成英文路径就好了。参考文章Stata如何快速安装外部命令...

    2024/4/25 15:42:28
  17. linux安装包查找及安装

    包查找安装的命令形式&#xff0c;有两种为&#xff1a;apt 和 dpkg&#xff0c;&#xff0c;&#xff0c;一般常用的是apt命令&#xff1b; apt&#xff1a; 命令 作用 apt-cache search package 搜索包 apt-cache show package 获取包的相关信息&#xff0c;如说明、大小、…...

    2024/4/25 17:40:42
  18. Groovy 的多重赋值和方法的多返回值

    追溯到刚开始学习 Groovy 还是在 2008 年,距今 2018 年有九年半余,曾记下几篇 Groovy 的日志。那时学习 Groovy 并无明确的目的,只因它是脚本语言, 可用来快速验证 Java API。曾经 BeanShell 芸花一现,JRuby 和 Jython 总是别人家的语言照搬而来的。而 Scala,Nashorn(jjs…...

    2024/4/15 6:38:22
  19. MySQL常见函数2——数学函数

    1、round&#xff08;&#xff09; 四舍五入 SELECT ROUND(4.50); select round(4.77531,2); #小数点后保留两位 2、 ceil&#xff08;&#xff09; 向上取整&#xff0c;返回大于等于该参数的最小整数 SELECT CEIL(1.56); 3、 floor&#xff08;&#xff09; 向下取整&…...

    2024/4/19 21:59:41
  20. 华为、苹果接踵而至,Mini LED会是视觉时代下的“最优解”?

    如果说用户对电子产品哪项硬件要求变高了&#xff0c;毫无疑问是屏幕。 就像苹果在2019年推出iPhone11上一般&#xff0c;随着OLED成为手机屏幕的标配&#xff0c;苹果采用LCD&#xff0c;遭到无数果粉跟网友的吐槽。 随着时代的不断更迭&#xff0c;电子产品的功能及硬件逐渐…...

    2024/4/17 7:27:17

最新文章

  1. C++内存分布 new和delete介绍

    目录 C/C内存分布 栈区 堆区 静态区 常量区 C new和delete 分配空间形式对比 new delete与malloc free的区别 可不可以串着使用new和free呢 C/C内存分布 C的内存分布&#xff0c;大体上分为栈区 堆区 静态区 常量区 栈区 栈区是用于存储函数调用时的局部变量 函…...

    2024/4/26 12:51:42
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. 《c++》多态案例一.电脑组装

    一.代码展示 #include <iostream> using namespace std; class CPU { public://抽象计算函数virtual void calculate() 0;};class CVideoCard { public://抽象显示函数virtual void display() 0;}; class Memory { public://抽象存储函数virtual void storage() 0;};…...

    2024/4/23 4:46:08
  4. 【JVM】JVM常用性能调优参数详细介绍

    JVM常用性能调优参数详细介绍 一、何时进行JVM调优二、性能调优三、JVM调优的基本原则四、JVM调优目标五、JVM调优的步骤六、JVM参数七、JVM参数解析及调优八、JVM参数使用手册8.1 内存相关8.2 GC策略相关8.3 GC日志相关8.4 异常相关8.5 问题定位及优化相关九、参考文档一、何时…...

    2024/4/23 17:48:59
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/4/25 11:51:20
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/4/25 18:39:24
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/25 18:38:39
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/4/25 18:39:23
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/25 18:39:22
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/25 18:39:22
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/25 18:39:20
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/25 16:48:44
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/25 13:39:44
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/4/25 18:39:16
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/25 18:39:16
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/25 0:00:17
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/25 4:19:21
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/25 18:39:14
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/4/25 18:39:12
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/25 2:10:52
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/25 18:39:00
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/25 13:19:01
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/4/25 18:38:58
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/25 18:38:57
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57