高并发与负载均衡-nginx-安装配置2

本文介绍了在CentOS7系统中如何安装和配置Nginx,包括启动服务、查看进程状态以及使用`systemctl`管理Nginx服务。通过这些步骤,读者将能够掌握在Linux环境下搭建高并发服务器的基本操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[root@centos7-1 system]# chkconfig

注:该输出结果只显示 SysV 服务,并不包含
原生 systemd 服务。SysV 配置数据
可能被原生 systemd 配置覆盖。 

      要列出 systemd 服务,请执行 'systemctl list-unit-files'。
      查看在具体 target 启用的服务请执行
      'systemctl list-dependencies [target]'。

jexec              0:关    1:开    2:开    3:开    4:开    5:开    6:关
netconsole         0:关    1:关    2:关    3:关    4:关    5:关    6:关
network            0:关    1:关    2:开    3:开    4:开    5:开    6:关
[root@centos7-1 system]# systemctl list-unit-files
UNIT FILE                                     STATE   
proc-sys-fs-binfmt_misc.automount             static  
dev-hugepages.mount                           static  
dev-mqueue.mount                              static  
proc-fs-nfsd.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
var-lib-nfs-rpc_pipefs.mount                  static  
brandbot.path                                 disabled
cups.path                                     enabled 
systemd-ask-password-console.path             static  
systemd-ask-password-plymouth.path            static  
systemd-ask-password-wall.path                static  
session-82.scope                              static  
session-84.scope                              static  
session-90.scope                              static  
session-c1.scope                              static  
abrt-ccpp.service                             enabled 
abrt-oops.service                             enabled 
abrt-pstoreoops.service                       disabled
abrt-vmcore.service                           enabled 
abrt-xorg.service                             enabled 
abrtd.service                                 enabled 
accounts-daemon.service                       enabled 
alsa-restore.service                          static  
alsa-state.service                            static  
anaconda-direct.service                       static  
anaconda-nm-config.service                    static  
anaconda-noshell.service                      static  
anaconda-pre.service                          static  
anaconda-shell@.service                       static  
anaconda-sshd.service                         static  
anaconda-tmux@.service                        static  
anaconda.service                              static  
arp-ethers.service                            disabled
atd.service                                   enabled 
auditd.service                                enabled 
auth-rpcgss-module.service                    static  
autofs.service                                disabled
autovt@.service                               enabled 
avahi-daemon.service                          enabled 
blk-availability.service                      disabled
bluetooth.service                             enabled 
bolt.service                                  static  
brandbot.service                              static  
brltty.service                                disabled
canberra-system-bootup.service                disabled
canberra-system-shutdown-reboot.service       disabled
canberra-system-shutdown.service              disabled
certmonger.service                            disabled
cgconfig.service                              disabled
cgdcbxd.service                               disabled
cgred.service                                 disabled
chrony-dnssrv@.service                        static  
chrony-wait.service                           disabled
chronyd.service                               enabled 
clean-mount-point@.service                    static  
colord.service                                static  
configure-printer@.service                    static  
console-getty.service                         disabled
console-shell.service                         disabled
container-getty@.service                      static  
cpupower.service                              disabled
crond.service                                 enabled 
cups-browsed.service                          disabled
cups.service                                  enabled 
dbus-org.bluez.service                        enabled 
dbus-org.freedesktop.Avahi.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.ModemManager1.service    enabled 
dbus-org.freedesktop.NetworkManager.service   enabled 
dbus-org.freedesktop.nm-dispatcher.service    enabled 
dbus-org.freedesktop.timedate1.service        static  
dbus.service                                  static  
debug-shell.service                           disabled
display-manager.service                       enabled 
dm-event.service                              static  
dmraid-activation.service                     enabled 
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  
fcoe.service                                  disabled
firewalld.service                             disabled
firstboot-graphical.service                   disabled
flatpak-system-helper.service                 static  
fprintd.service                               static  
fstrim.service                                static  
fwupd-offline-update.service                  static  
fwupd.service                                 static  
fwupdate-cleanup.service                      static  
gdm.service                                   enabled 
geoclue.service                               static  
getty@.service                                enabled 
gssproxy.service                              disabled
halt-local.service                            static  
htcacheclean.service                          static  
httpd.service                                 disabled
hypervfcopyd.service                          static  
hypervkvpd.service                            static  
hypervvssd.service                            static  
initial-setup-graphical.service               disabled
initial-setup-reconfiguration.service         enabled 
initial-setup-text.service                    disabled
initial-setup.service                         disabled
initrd-cleanup.service                        static  
initrd-parse-etc.service                      static  
initrd-switch-root.service                    static  
initrd-udevadm-cleanup-db.service             static  
instperf.service                              static  
iprdump.service                               disabled
iprinit.service                               disabled
iprupdate.service                             disabled
ipsec.service                                 disabled
ipvsadm.service                               disabled
irqbalance.service                            enabled 
iscsi-shutdown.service                        static  
iscsi.service                                 enabled 
iscsid.service                                disabled
iscsiuio.service                              disabled
kdump.service                                 enabled 
keepalived.service                            disabled
kmod-static-nodes.service                     static  
kpatch.service                                disabled
ksm.service                                   enabled 
ksmtuned.service                              enabled 
libstoragemgmt.service                        enabled 
libvirtd.service                              enabled 
lldpad.service                                disabled
lvm2-lvmetad.service                          static  
lvm2-lvmpolld.service                         static  
lvm2-monitor.service                          enabled 
lvm2-pvscan@.service                          static  
mdadm-grow-continue@.service                  static  
mdadm-last-resort@.service                    static  
mdmon@.service                                static  
mdmonitor.service                             enabled 
messagebus.service                            static  
microcode.service                             enabled 
ModemManager.service                          enabled 
multipathd.service                            enabled 
ndctl-monitor.service                         disabled
netcf-transaction.service                     disabled
NetworkManager-dispatcher.service             enabled 
NetworkManager-wait-online.service            enabled 
NetworkManager.service                        enabled 
nfs-blkmap.service                            disabled
nfs-config.service                            static  
nfs-idmap.service                             static  
nfs-idmapd.service                            static  
nfs-lock.service                              static  
nfs-mountd.service                            static  
nfs-rquotad.service                           disabled
nfs-secure.service                            static  
nfs-server.service                            disabled
nfs-utils.service                             static  
nfs.service                                   disabled
nfslock.service                               static  
nginx.service                                 disabled
ntpd.service                                  disabled
ntpdate.service                               disabled
numad.service                                 disabled
oddjobd.service                               disabled
packagekit-offline-update.service             static  
packagekit.service                            static  
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 
psacct.service                                disabled
qemu-guest-agent.service                      enabled 
quotaon.service                               static  
radvd.service                                 disabled
rc-local.service                              static  
rdisc.service                                 disabled
rdma-load-modules@.service                    static  
rdma-ndd.ser

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值