centos沒有/sbin/service命令的恢復方法(-bash: service: command not found)
阿新 • • 發佈:2019-01-22
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.btte.net
Resolving Dependencies
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.30-1.el7_2.3 will be installed
--> Processing Dependency: iproute for package: initscripts-9.49.30-1.el7_2.3.x86_64
--> Running transaction check
---> Package iproute.x86_64 0:3.10.0-54.el7_2.1 will be installed
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-3.10.0-54.el7_2.1.x86_64
--> Running transaction check
---> Package iptables.x86_64 0:1.4.21-16.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
initscripts x86_64 9.49.30-1.el7_2.3 updates 429 k
Installing for dependencies:
iproute x86_64 3.10.0-54.el7_2.1 updates 526 k
iptables x86_64 1.4.21-16.el7 base 424 k
Transaction Summary
===================================================================================================
Install 1 Package (+2 Dependent packages)
Total download size: 1.3 M
Installed size: 4.2 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): iproute-3.10.0-54.el7_2.1.x86_64.rpm | 526 kB 00:00:00
(2/3): initscripts-9.49.30-1.el7_2.3.x86_64.rpm | 429 kB 00:00:00
(3/3): iptables-1.4.21-16.el7.x86_64.rpm | 424 kB 00:00:00
---------------------------------------------------------------------------------------------------
Total 1.7 MB/s | 1.3 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : iptables-1.4.21-16.el7.x86_64 1/3
Installing : iproute-3.10.0-54.el7_2.1.x86_64 2/3
Installing : initscripts-9.49.30-1.el7_2.3.x86_64 3/3
Verifying : iptables-1.4.21-16.el7.x86_64 1/3
Verifying : iproute-3.10.0-54.el7_2.1.x86_64 2/3
Verifying : initscripts-9.49.30-1.el7_2.3.x86_64 3/3
Installed:
initscripts.x86_64 0:9.49.30-1.el7_2.3
Dependency Installed:
iproute.x86_64 0:3.10.0-54.el7_2.1 iptables.x86_64 0:1.4.21-16.el7
Complete!
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.btte.net
Resolving Dependencies
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.30-1.el7_2.3 will be installed
--> Processing Dependency: iproute for package: initscripts-9.49.30-1.el7_2.3.x86_64
--> Running transaction check
---> Package iproute.x86_64 0:3.10.0-54.el7_2.1 will be installed
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-3.10.0-54.el7_2.1.x86_64
--> Running transaction check
---> Package iptables.x86_64 0:1.4.21-16.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
initscripts x86_64 9.49.30-1.el7_2.3 updates 429 k
Installing for dependencies:
iproute x86_64 3.10.0-54.el7_2.1 updates 526 k
iptables x86_64 1.4.21-16.el7 base 424 k
Transaction Summary
===================================================================================================
Install 1 Package (+2 Dependent packages)
Total download size: 1.3 M
Installed size: 4.2 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): iproute-3.10.0-54.el7_2.1.x86_64.rpm | 526 kB 00:00:00
(2/3): initscripts-9.49.30-1.el7_2.3.x86_64.rpm | 429 kB 00:00:00
(3/3): iptables-1.4.21-16.el7.x86_64.rpm | 424 kB 00:00:00
---------------------------------------------------------------------------------------------------
Total 1.7 MB/s | 1.3 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : iptables-1.4.21-16.el7.x86_64 1/3
Installing : iproute-3.10.0-54.el7_2.1.x86_64 2/3
Installing : initscripts-9.49.30-1.el7_2.3.x86_64 3/3
Verifying : iptables-1.4.21-16.el7.x86_64 1/3
Verifying : iproute-3.10.0-54.el7_2.1.x86_64 2/3
Verifying : initscripts-9.49.30-1.el7_2.3.x86_64 3/3
Installed:
initscripts.x86_64 0:9.49.30-1.el7_2.3
Dependency Installed:
iproute.x86_64 0:3.10.0-54.el7_2.1 iptables.x86_64 0:1.4.21-16.el7
Complete!