当前位置:   article > 正文

centos7查看服务开机启用和禁用的方法_teamd@.service

teamd@.service

centos7查看服务开机启用和禁用的方法

加入开机启动

systemctl enable mysqld;

systemctl enable firewalld.service ;

systemctl enable httpd.service;

先关闭,停止运行服务

systemctl stop firewalld.service ;

加入开机禁用

systemctl disable firewalld.service;

查看状态

systemctl status iptables.service;

systemctl status mysqld;

查看httpd的开机启动状态列表

systemctl list-unit-files;

UNIT FILE                              STATE   
proc-sys-fs-binfmt_misc.automount      static  
dev-hugepages.mount                    static  
dev-mqueue.mount                       static  
proc-sys-fs-binfmt_misc.mount          static  
sys-fs-fuse-connections.mount          static  
sys-kernel-config.mount                static  
sys-kernel-debug.mount                 static  
tmp.mount                              disabled
brandbot.path                          disabled
systemd-ask-password-console.path      static  
systemd-ask-password-plymouth.path     static  
systemd-ask-password-wall.path         static  
session-1.scope                        static  
session-2.scope                        static  
session-4.scope                        static  
arp-ethers.service                     disabled
auditd.service                         enabled 
autovt@.service                        enabled 
blk-availability.service               disabled
brandbot.service                       static  
chrony-dnssrv@.service                 static  
chrony-wait.service                    disabled
chronyd.service                        enabled 
console-getty.service                  disabled
console-shell.service                  disabled
container-getty@.service               static  
cpupower.service                       disabled
crond.service                          enabled 
dbus-org.freedesktop.hostname1.service static  
dbus-org.freedesktop.import1.service   static  
dbus-org.freedesktop.locale1.service   static  
dbus-org.freedesktop.login1.service    static  
dbus-org.freedesktop.machine1.service  static  
dbus-org.freedesktop.network1.service  bad     
dbus-org.freedesktop.timedate1.service static  
dbus.service                           static  
debug-shell.service                    disabled
dm-event.service                       disabled
dnsmasq.service                        disabled
dracut-cmdline.service                 static  
dracut-initqueue.service               static  
dracut-mount.service                   static  
dracut-pre-mount.service               static  
dracut-pre-pivot.service               static  
dracut-pre-trigger.service             static  
dracut-pre-udev.service                static  
dracut-shutdown.service                static  
ebtables.service                       disabled
emergency.service                      static  
firewalld.service                      disabled
fstrim.service                         static  
lines 1-52

UNIT FILE                              STATE   
proc-sys-fs-binfmt_misc.automount      static  
dev-hugepages.mount                    static  
dev-mqueue.mount                       static  
proc-sys-fs-binfmt_misc.mount          static  
sys-fs-fuse-connections.mount          static  
sys-kernel-config.mount                static  
sys-kernel-debug.mount                 static  
tmp.mount                              disabled
brandbot.path                          disabled
systemd-ask-password-console.path      static  
systemd-ask-password-plymouth.path     static  
systemd-ask-password-wall.path         static  
session-1.scope                        static  
session-2.scope                        static  
session-4.scope                        static  
arp-ethers.service                     disabled
auditd.service                         enabled 
autovt@.service                        enabled 
blk-availability.service               disabled
brandbot.service                       static  
chrony-dnssrv@.service                 static  
chrony-wait.service                    disabled
chronyd.service                        enabled 
console-getty.service                  disabled
console-shell.service                  disabled
container-getty@.service               static  
lines 1-27

UNIT FILE                              STATE   
proc-sys-fs-binfmt_misc.automount      static  
dev-hugepages.mount                    static  
dev-mqueue.mount                       static  
proc-sys-fs-binfmt_misc.mount          static  
sys-fs-fuse-connections.mount          static  
sys-kernel-config.mount                static  
sys-kernel-debug.mount                 static  
tmp.mount                              disabled
brandbot.path                          disabled
systemd-ask-password-console.path      static  
systemd-ask-password-plymouth.path     static  
systemd-ask-password-wall.path         static  
session-1.scope                        static  
session-2.scope                        static  
session-4.scope                        static  
arp-ethers.service                     disabled
auditd.service                         enabled 
autovt@.service                        enabled 
blk-availability.service               disabled
brandbot.service                       static  
chrony-dnssrv@.service                 static  
chrony-wait.service                    disabled
chronyd.service                        enabled 
console-getty.service                  disabled
console-shell.service                  disabled
container-getty@.service               static  
cpupower.service                       disabled
crond.service                          enabled 
dbus-org.freedesktop.hostname1.service static  
dbus-org.freedesktop.import1.service   static  
dbus-org.freedesktop.locale1.service   static  
dbus-org.freedesktop.login1.service    static  
dbus-org.freedesktop.machine1.service  static  
dbus-org.freedesktop.network1.service  bad     
dbus-org.freedesktop.timedate1.service static  
dbus.service                           static  
debug-shell.service                    disabled
dm-event.service                       disabled
dnsmasq.service                        disabled
dracut-cmdline.service                 static  
dracut-initqueue.service               static  
dracut-mount.service                   static  
dracut-pre-mount.service               static  
dracut-pre-pivot.service               static  
dracut-pre-trigger.service             static  
dracut-pre-udev.service                static  
dracut-shutdown.service                static  
ebtables.service                       disabled
emergency.service                      static  
firewalld.service                      disabled
fstrim.service                         static  
getty@.service                         enabled 
halt-local.service                     static  
initrd-cleanup.service                 static  
initrd-parse-etc.service               static  
initrd-switch-root.service             static  
initrd-udevadm-cleanup-db.service      static  
iprdump.service                        disabled
iprinit.service                        disabled
iprupdate.service                      disabled
irqbalance.service                     enabled 
kdump.service                          enabled 
kmod-static-nodes.service              static  
lvm2-lvmetad.service                   disabled
lvm2-lvmpolld.service                  disabled
lvm2-monitor.service                   enabled 
lvm2-pvscan@.service                   static  
messagebus.service                     static  
microcode.service                      enabled 
mysql.service                          enabled 
mysqld.service                         enabled 
NetworkManager-dispatcher.service      disabled
NetworkManager-wait-online.service     enabled 
NetworkManager.service                 disabled
plymouth-halt.service                  disabled
plymouth-kexec.service                 disabled
plymouth-poweroff.service              disabled
plymouth-quit-wait.service             disabled
plymouth-quit.service                  disabled
plymouth-read-write.service            disabled
plymouth-reboot.service                disabled
plymouth-start.service                 disabled
plymouth-switch-root.service           static  
polkit.service                         static  
postfix.service                        enabled 
postgresql-10.service                  enabled 
quotaon.service                        static  
rc-local.service                       static  
rdisc.service                          disabled
rdma.service                           disabled
rescue.service                         static  
rhel-autorelabel-mark.service          static  
rhel-autorelabel.service               static  
rhel-configure.service                 static  
rhel-dmesg.service                     disabled
rhel-domainname.service                disabled
rhel-import-state.service              static  
rhel-loadmodules.service               static  
rhel-readonly.service                  static  
rsyslog.service                        enabled 
serial-getty@.service                  disabled
sshd-keygen.service                    static  
sshd.service                           enabled 
sshd@.service                          static  
systemd-ask-password-console.service   static  
systemd-ask-password-plymouth.service  static  
systemd-ask-password-wall.service      static  
systemd-backlight@.service             static  
systemd-binfmt.service                 static  
systemd-bootchart.service              disabled
systemd-firstboot.service              static  
systemd-fsck-root.service              static  
systemd-fsck@.service                  static  
systemd-halt.service                   static  
systemd-hibernate-resume@.service      static  
systemd-hibernate.service              static  
systemd-hostnamed.service              static  
systemd-hwdb-update.service            static  
systemd-hybrid-sleep.service           static  
systemd-importd.service                static  
systemd-initctl.service                static  
systemd-journal-catalog-update.service static  
systemd-journal-flush.service          static  
systemd-journald.service               static  
systemd-kexec.service                  static  
systemd-localed.service                static  
systemd-logind.service                 static  
systemd-machine-id-commit.service      static  
systemd-machined.service               static  
systemd-modules-load.service           static  
systemd-nspawn@.service                disabled
systemd-poweroff.service               static  
systemd-quotacheck.service             static  
systemd-random-seed.service            static  
systemd-readahead-collect.service      enabled 
systemd-readahead-done.service         indirect
systemd-readahead-drop.service         enabled 
systemd-readahead-replay.service       enabled 
systemd-reboot.service                 static  
systemd-remount-fs.service             static  
systemd-rfkill@.service                static  
systemd-shutdownd.service              static  
systemd-suspend.service                static  
systemd-sysctl.service                 static  
systemd-timedated.service              static  
systemd-tmpfiles-clean.service         static  
systemd-tmpfiles-setup-dev.service     static  
systemd-tmpfiles-setup.service         static  
systemd-udev-settle.service            static  
systemd-udev-trigger.service           static  
systemd-udevd.service                  static  
systemd-update-done.service            static  
systemd-update-utmp-runlevel.service   static  
systemd-update-utmp.service            static  
systemd-user-sessions.service          static  
systemd-vconsole-setup.service         static  
tcsd.service                           disabled
teamd@.service                         static  
tomcat.service                         enabled 
tomcat@.service                        disabled
tuned.service                          enabled 
wpa_supplicant.service                 disabled
-.slice                                static  
machine.slice                          static  
system.slice                           static  
user.slice                             static  
dbus.socket                            static  
dm-event.socket                        enabled 
lvm2-lvmetad.socket                    enabled 
lvm2-lvmpolld.socket                   enabled 
sshd.socket                            disabled
syslog.socket                          static  
systemd-initctl.socket                 static  
systemd-journald.socket                static  
systemd-networkd.socket                disabled
systemd-shutdownd.socket               static  
systemd-udevd-control.socket           static  
systemd-udevd-kernel.socket            static  
basic.target                           static  
bluetooth.target                       static  
cryptsetup-pre.target                  static  
cryptsetup.target                      static  
ctrl-alt-del.target                    disabled
default.target                         enabled 
emergency.target                       static  
final.target                           static  
getty.target                           static  
graphical.target                       static  
halt.target                            disabled
hibernate.target                       static  
hybrid-sleep.target                    static  
initrd-fs.target                       static  
initrd-root-fs.target                  static  
halt-local.service                     static  
initrd-cleanup.service                 static  
initrd-parse-etc.service               static  
initrd-switch-root.service             static  
initrd-udevadm-cleanup-db.service      static  
iprdump.service                        disabled
iprinit.service                        disabled
iprupdate.service                      disabled
irqbalance.service                     enabled 
kdump.service                          enabled 
kmod-static-nodes.service              static  
lvm2-lvmetad.service                   disabled
lvm2-lvmpolld.service                  disabled
lvm2-monitor.service                   enabled 
lvm2-pvscan@.service                   static  
messagebus.service                     static  
microcode.service                      enabled 
mysql.service                          enabled 
mysqld.service                         enabled 
NetworkManager-dispatcher.service      disabled
NetworkManager-wait-online.service     enabled 
NetworkManager.service                 disabled
plymouth-halt.service                  disabled
plymouth-kexec.service                 disabled
plymouth-poweroff.service              disabled
plymouth-quit-wait.service             disabled
plymouth-quit.service                  disabled
plymouth-read-write.service            disabled
plymouth-reboot.service                disabled
plymouth-start.service                 disabled
plymouth-switch-root.service           static  
polkit.service                         static  
postfix.service                        enabled 
postgresql-10.service                  enabled 
quotaon.service                        static  
rc-local.service                       static  
rdisc.service                          disabled
rdma.service                           disabled
rescue.service                         static  
rhel-autorelabel-mark.service          static  
rhel-autorelabel.service               static  
rhel-configure.service                 static  
rhel-dmesg.service                     disabled
rhel-domainname.service                disabled
rhel-import-state.service              static  
rhel-loadmodules.service               static  
rhel-readonly.service                  static  
rsyslog.service                        enabled 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/76485
推荐阅读
相关标签
  

闽ICP备14008679号