如何部署cobbler批量安装的服务端

cobbler批量安装

cobbler简介

Cobbler是一个Linux服务器安装的服务,可以通过网络启动(PXE)的方式来快速安装、重装物理服务器和虚拟机,同时还可以管理DHCPDNS等。

Cobbler可以使用命令行方式管理,也提供了基于Web的界面管理工具(cobbler-web),还提供了API接口,可以方便二次开发使用。

Cobbler是较早前的kickstart的升级版,优点是比较容易配置,还自带web界面比较易于管理。

Cobbler内置了一个轻量级配置管理系统,但它也支持和其它配置管理系统集成,如Puppet,暂时不支持SaltStack。

Cobbler(http://cobbler.github.io/)

cobbler集成的服务

  • PXE服务支持
  • DHCP服务管理
  • DNS服务管理(可选bind,dnsmasq)
  • 电源管理
  • Kickstart服务支持
  • YUM仓库管理
  • TFTP(PXE启动时需要)
  • Apache(提供kickstart的安装源,并提供定制化的kickstart配置)

cobbler配置文件详解
cobbler配置文件目录在/etc/cobbler

配置文件作用
/etc/cobbler/settingscobbler 主配置文件
/etc/cobbler/iso/iso模板配置文件
/etc/cobbler/pxepxe模板配置文件
/etc/cobbler/power电源配置文件
/etc/cobbler/user.confweb服务授权配置文件
/etc/cobbler/users.digestweb访问的用户名密码配置文件
/etc/cobbler/dhcp.templatedhcp服务器的的配置模板
/etc/cobbler/dnsmasq.templatedns服务器的配置模板
/etc/cobbler/tftpd.templatetftp服务的配置模板
/etc/cobbler/modules.conf模块的配置文件

cobbler数据目录

目录作用
/var/lib/cobbler/config/用于存放distros,system,profiles等信息配置文件
/var/lib/cobbler/triggers/用于存放用户定义的cobbler命令
/var/lib/cobbler/kickstart/默认存放kickstart文件
/var/lib/cobbler/loaders/存放各种引导程序以及镜像目录
/var/www/cobbler/ks_mirror/导入的发行版系统的所有数据
/var/www/cobbler/images/导入发行版的kernel和initrd镜像用于远程网络启动
/var/www/cobbler/repo_mirror/yum仓库存储目录

cobbler日志文件

日志文件路径说明
/var/log/cobbler/installing客户端安装日志
/var/log/cobbler/cobbler.logcobbler日志

cobbler命令详解

cobbler check       //核对当前设置是否有问题
cobbler list        //列出所有的cobbler元素
cobbler report      //列出元素的详细信息
cobbler sync        //同步配置到数据目录,更改配置最好都要执行下
cobbler reposync    //同步yum仓库
cobbler distro      //查看导入的发行版系统信息
cobbler system      //查看添加的系统信息
cobbler profile     //查看配置信息

cobbler服务端部署

安装cobbler以及相关的软件
[root@cjy ~]# yum -y install httpd dhcp* tftp cobbler xinetd cobbler-web pykickstart
安装过程略....


关防火墙启动服务并设置开机自启
[root@cjy ~]# systemctl disable --now firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@cjy ~]# systemctl enable --now httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@cjy ~]# systemctl enable --now cobblerd
Created symlink /etc/systemd/system/multi-user.target.wants/cobblerd.service → /usr/lib/systemd/system/cobblerd.service.


修改server的ip地址为本机ip
设置tftp的ip地址为本机ip
[root@cjy ~]# cd /etc/cobbler/
[root@cjy cobbler]# vim settings
.............................内容省略
server: 192.168.159.148
.............................内容省略
next_server: 192.168.159.148


开启tftp
[root@cjy cobbler]# systemctl enable --now tftp
Created symlink /etc/systemd/system/sockets.target.wants/tftp.socket → /usr/lib/systemd/system/tftp.socket.
[root@cjy cobbler]# systemctl status tftp
● tftp.service - Tftp Server
   Loaded: loaded (/usr/lib/systemd/system/tftp.service; indirect; vendor preset: disabled)
   Active: active (running) since Fri 2023-12-22 14:31:28 CST; 13s ago
     Docs: man:in.tftpd
 Main PID: 3202 (in.tftpd)
    Tasks: 1
   Memory: 100.0K
   CGroup: /system.slice/tftp.service
           └─3202 /usr/sbin/in.tftpd -s /var/lib/tftpboot

12月 22 14:31:28 cjy systemd[1]: Started Tftp Server.


下载缺失文件
[root@cjy cobbler]# cobbler get-loaders
task started: 2023-12-22_143234_get_loaders
task started (id=Download Bootloader Content, time=Fri Dec 22 14:32:34 2023)
running python triggers from /var/lib/cobbler/triggers/task/get_loaders/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/get_loaders/pre/*
shell triggers finished successfully
downloading https://cobbler.github.io/loaders/README to /var/lib/cobbler/loaders/README
downloading https://cobbler.github.io/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot
downloading https://cobbler.github.io/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux
downloading https://cobbler.github.io/loaders/yaboot-1.3.17 to /var/lib/cobbler/loaders/yaboot
downloading https://cobbler.github.io/loaders/pxelinux.0-3.86 to /var/lib/cobbler/loaders/pxelinux.0
downloading https://cobbler.github.io/loaders/menu.c32-3.86 to /var/lib/cobbler/loaders/menu.c32
downloading https://cobbler.github.io/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi
downloading https://cobbler.github.io/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi
*** TASK COMPLETE ***


启动rsync并设置开机自启
[root@cjy cobbler]# yum -y install rsync-daemon
[root@cjy cobbler]# systemctl enable --now rsyncd
Created symlink /etc/systemd/system/multi-user.target.wants/rsyncd.service → /usr/lib/systemd/system/rsyncd.service.
[root@cjy cobbler]# systemctl status rsyncd
● rsyncd.service - fast remote file copy program daemon
   Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; enabled; vendor preset: disable>
   Active: active (running) since Fri 2023-12-22 14:34:33 CST; 9s ago
 Main PID: 3382 (rsync)
    Tasks: 1
   Memory: 184.0K
   CGroup: /system.slice/rsyncd.service
           └─3382 /usr/bin/rsync --daemon --no-detach

12月 22 14:34:33 cjy systemd[1]: Started fast remote file copy program daemon.
12月 22 14:34:33 cjy rsyncd[3382]: rsyncd version 3.1.3 starting, listening on port 873


生成加密的密码
[root@cjy ~]# openssl passwd -1 -salt "$RANDOM" 'shuijiao123!'
$1$14968$0310dZNA/KPEFx33z0GKr.       这是密码加密后的形式

将新生成的加密密码加入到配置文件
[root@cjy ~]# vim /etc/cobbler/settings
....    此处为省略内容
default_password_crypted: "$1$14968$0310dZNA/KPEFx33z0GKr."
.....   此处为省略内容

重启cobbler
[root@cjy ~]# systemctl restart cobblerd
[root@cjy ~]# ss -antl
State     Recv-Q    Send-Q       Local Address:Port        Peer Address:Port    Process    
LISTEN    0         5                127.0.0.1:25151            0.0.0.0:*                  
LISTEN    0         5                  0.0.0.0:873              0.0.0.0:*                  
LISTEN    0         128                0.0.0.0:22               0.0.0.0:*                  
LISTEN    0         5                127.0.0.1:631              0.0.0.0:*                  
LISTEN    0         511                      *:443                    *:*                  
LISTEN    0         5                     [::]:873                 [::]:*                  
LISTEN    0         511                      *:80                     *:*                  
LISTEN    0         128                   [::]:22                  [::]:*                  
LISTEN    0         5                    [::1]:631                 [::]:*                  

通过cobbler check 核对当前设置是否有问题
[root@cjy ~]# cobbler check
The following are potential configuration items that you may want to fix:

1: reposync is not installed, install yum-utils or dnf-plugins-core
2: yumdownloader is not installed, install yum-utils or dnf-plugins-core
3: debmirror package is not installed, it will be required to manage debian deployments and repositories
4: fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

Restart cobblerd and then run 'cobbler sync' to apply changes.
以上四个是关于debian系统的错误
[root@cjy ~]# yum -y install yum-utils
[root@cjy ~]# cobbler check
The following are potential configuration items that you may want to fix:

1: debmirror package is not installed, it will be required to manage debian deployments and repositories
2: fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

Restart cobblerd and then run 'cobbler sync' to apply changes.
以上两个是关于debian系统的错误,请忽略


配置cobbler dhcp
修改cobbler配置文件,让cobbler控制dhcp
[root@cjy ~]# vim /etc/cobbler/settings
..............
manage_dhcp: 1
..............

配置dhcp
[root@cjy ~]# vim /etc/cobbler/dhcp.template
....    //此处为省略内容
subnet 192.168.159.0 netmask 255.255.255.0 {
     option routers             192.168.159.148;    此处为本机ip
     option domain-name-servers 192.168.159.2;      此处为系统安装好后指定的dns地址
     option subnet-mask         255.255.255.0;
     range dynamic-bootp        192.168.159.200 192.168.159.220;   此处为分配的ip
     default-lease-time         21600;
     max-lease-time             43200;
     next-server                $next_server;
     class "pxeclients" {
          match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
              filename "pxelinux.0";
     }
}

....    //此处为省略内容


重启服务并同步配置,改完dhcp必须要sync同步配置
[root@cjy ~]# systemctl restart cobblerd
[root@cjy ~]# cobbler sync
task started: 2023-12-22_145814_sync
task started (id=Sync, time=Fri Dec 22 14:58:14 2023)
running python triggers from /var/lib/cobbler/triggers/task/sync/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/sync/pre/*
shell triggers finished successfully
running pre-sync triggers
cleaning trees
removing: /var/lib/tftpboot/grub/system
removing: /var/lib/tftpboot/grub/system_link
removing: /var/lib/tftpboot/grub/images
copying bootloaders
running: ['rsync', '-rpt', '--copy-links', '--exclude=.cobbler_postun_cleanup', '/var/lib/cobbler/loaders/', '/var/lib/tftpboot']
received on stdout: 
received on stderr: 
running: ['rsync', '-rpt', '--copy-links', '--exclude=README.grubconfig', '/var/lib/cobbler/grub_config/', '/var/lib/tftpboot']
received on stdout: 
received on stderr: 
copying distros to tftpboot
copying images
generating PXE configuration files
generating PXE menu structure
rendering DHCP files
generating /etc/dhcp/dhcpd.conf
cleaning link caches
running post-sync triggers
running python triggers from /var/lib/cobbler/triggers/sync/post/*
running python trigger cobbler.modules.sync_post_restart_services
running: dhcpd -t -q
received on stdout: 
received on stderr: 
running: service dhcpd restart
received on stdout: 
received on stderr: 重定向至 /bin/systemctl restart dhcpd.service

running shell triggers from /var/lib/cobbler/triggers/sync/post/*
shell triggers finished successfully
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running python trigger cobbler.modules.managers.genders
running shell triggers from /var/lib/cobbler/triggers/change/*
shell triggers finished successfully
*** TASK COMPLETE ***

检查dhcp是否正常
[root@cjy ~]# ss -aun | grep 67
UNCONN 0      0                    0.0.0.0:67            0.0.0.0:*          
ESTAB  0      0      192.168.159.148%ens33:68    192.168.159.254:67         


导入统信uso镜像
[root@cjy ~]# df -h
文件系统              容量  已用  可用 已用% 挂载点
devtmpfs              1.9G     0  1.9G    0% /dev
tmpfs                 1.9G     0  1.9G    0% /dev/shm
tmpfs                 1.9G   17M  1.9G    1% /run
tmpfs                 1.9G     0  1.9G    0% /sys/fs/cgroup
/dev/mapper/uos-root   70G  3.2G   67G    5% /
tmpfs                 1.9G     0  1.9G    0% /tmp
/dev/sda1            1014M  253M  762M   25% /boot
/dev/mapper/uos-home   26G  212M   25G    1% /home
tmpfs                 375M     0  375M    0% /run/user/0
[root@cjy ~]# mount /dev/cdrom /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
[root@cjy ~]# ls /mnt
AppStream  EFI               images    kernel419  media.repo               TRANS.TBL
BaseOS     extra_files.json  isolinux  kernel510  RPM-GPG-KEY-uos-release
[root@cjy ~]# cobbler import --path=/mnt --name=uos20 --arch=x86_64
task started: 2023-12-22_150308_import
task started (id=Media import, time=Fri Dec 22 15:03:08 2023)
running python triggers from /var/lib/cobbler/triggers/task/import/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/import/pre/*
shell triggers finished successfully
Found a candidate signature: breed=uniontech, version=uniontech
Found a matching signature: breed=uniontech, version=uniontech
Adding distros from path /var/www/cobbler/distro_mirror/uos20-x86_64:
creating new distro: uos20-x86_64
trying symlink: /var/www/cobbler/distro_mirror/uos20-x86_64 -> /var/www/cobbler/links/uos20-x86_64
creating new profile: uos20-x86_64
associating repos
checking for rsync repo(s)
checking for rhn repo(s)
checking for yum repo(s)
starting descent into /var/www/cobbler/distro_mirror/uos20-x86_64 for uos20-x86_64
processing repo at : /var/www/cobbler/distro_mirror/uos20-x86_64/AppStream
need to process repo/comps: /var/www/cobbler/distro_mirror/uos20-x86_64/AppStream
looking for /var/www/cobbler/distro_mirror/uos20-x86_64/AppStream/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/distro_mirror/uos20-x86_64/AppStream/repodata
processing repo at : /var/www/cobbler/distro_mirror/uos20-x86_64/BaseOS
need to process repo/comps: /var/www/cobbler/distro_mirror/uos20-x86_64/BaseOS
looking for /var/www/cobbler/distro_mirror/uos20-x86_64/BaseOS/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/distro_mirror/uos20-x86_64/BaseOS/repodata
processing repo at : /var/www/cobbler/distro_mirror/uos20-x86_64/kernel419
directory /var/www/cobbler/distro_mirror/uos20-x86_64/kernel419 is missing xml comps file, skipping
processing repo at : /var/www/cobbler/distro_mirror/uos20-x86_64/kernel510
directory /var/www/cobbler/distro_mirror/uos20-x86_64/kernel510 is missing xml comps file, skipping
*** TASK COMPLETE ***


说明:
    --path      //镜像路径
    --name      //为安装源定义一个名字
    --arch      //指定安装源平台

安装源的唯一标示就是根据name参数来定义,本例导入成功后,安装源的唯一标示就是:uos20-x86_64,如果重复,系统会提示导入失败


查看cobbler镜像列表
[root@cjy ~]# cobbler list
distros:
   uos20-x86_64

profiles:
   uos20-x86_64

systems:

repos:

images:

mgmtclasses:

packages:

files:


创建kickstarts自动安装脚本
[root@cjy ~]# cd /var/lib/cobbler/templates/
[root@cjy templates]# ls
default.ks    install_profiles  pxerescue.ks         sample_esxi5.ks  sample_legacy.ks
esxi4-ks.cfg  legacy.ks         sample_autoyast.xml  sample_esxi6.ks  sample_old.seed
esxi5-ks.cfg  powerkvm.ks       sample_esxi4.ks      sample.ks        sample.seed
[root@cjy templates]# cp sample.ks uos20.ks
[root@cjy templates]# vim uos20.ks 
[root@cjy templates]# cat uos20.ks 
# Sample kickstart file for current EL, Fedora based distributions.


ignoredisk --only-use=sda
autopart --type=lvm
clearpart --all
text
url --url=http://192.168.159.148/cobbler/links/uos20-x86_64/
keyboard --vckeymap=cn --xlayouts='cn'
lang zh_CN.UTF-8
#network  --bootproto=dhcp --device=ens33 --ipv6=auto --activate  (可以不要)
#network  --hostname=localhost.localdomain   (可以不要)
rootpw --iscrypted   $6$BhgpUy/vf7qCaTU5$nl7uR.wgWxo/nuah8zeYsJRXGEYUUaTg//Njihb3lSKrvFRqZJQ9E1a83vAZ0K/HTROWEV3HB..1qZBMHd/E3.

xconfig  --startxonboot
firstboot --disable
services --enabled="chronyd"
timezone --isUtc Asia/Shanghai
reboot
eula --agreed

%packages
@^graphical-server-environment-dde
kexec-tools

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end

%anaconda

pwpolicy root --minlen=8 --minquality=1 --notstrict --nochanges --emptyok

pwpolicy user --minlen=8 --minquality=1 --notstrict --nochanges --emptyok

pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty

%end


检查ks文件语法是否有误
[root@cjy templates]# cobbler validate-autoinstalls
task started: 2023-12-22_151820_validate_autoinstall_files
task started (id=Automated installation files validation, time=Fri Dec 22 15:18:20 2023)
running python triggers from /var/lib/cobbler/triggers/task/validate_autoinstall_files/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/validate_autoinstall_files/pre/*
shell triggers finished successfully
*** TASK COMPLETE ***


查看当前cobbler有哪些配置文件
[root@cjy templates]# cobbler profile list
   uos20-x86_64

   
修改profile,将我们新建的ks文件设为默认的安装文件
[root@cjy ~]# cobbler profile edit --name uos20-x86_64 --autoinstall=uos20.ks

配置网卡名称为传统网卡名称eth0
[root@cjy ~]# cobbler profile edit --name uos20-x86_64 --kernel-options='net.ifnames=0 biosdevname=0'


检查当前系统cobbler配置文件信息
[root@cjy ~]# cobbler profile report
Name                           : uos20-x86_64
Automatic Installation Template : uos20.ks
Automatic Installation Metadata : {}
TFTP Boot Files                : {}
Comment                        : 
DHCP Tag                       : default
Distribution                   : uos20-x86_64   仓库名字
Enable gPXE?                   : 0
Enable PXE Menu?               : 1
Fetchable Files                : {}
DHCP Filename Override         : <<inherit>>
Kernel Options                 : {'net.ifnames': '0', 'biosdevname': '0'}  网卡设为传统命名方式
Kernel Options (Post Install)  : {}
Management Classes             : []
Management Parameters          : <<inherit>>
Name Servers                   : []
Name Servers Search Path       : []
Next Server Override           : <<inherit>>
Owners                         : ['admin']
Parent Profile                 : 
Proxy                          : 
Red Hat Management Key         : <<inherit>>
Repos                          : []
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 1
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt Disk Driver Type          : raw
Virt File Size(GB)             : 5
Virt Path                      : 
Virt RAM (MB)                  : 512
Virt Type                      : kvm


同步cobbler
[root@cjy ~]# cobbler sync
task started: 2023-12-22_155606_sync
task started (id=Sync, time=Fri Dec 22 15:56:06 2023)
running python triggers from /var/lib/cobbler/triggers/task/sync/pre/*
running shell triggers from /var/lib/cobbler/triggers/task/sync/pre/*
shell triggers finished successfully
running pre-sync triggers
cleaning trees
removing: /var/www/cobbler/images/uos20-x86_64
removing: /var/lib/tftpboot/pxelinux.cfg/default
removing: /var/lib/tftpboot/grub/images
removing: /var/lib/tftpboot/grub/system
removing: /var/lib/tftpboot/grub/system_link
removing: /var/lib/tftpboot/grub/grub.cfg
removing: /var/lib/tftpboot/grub/local_efi.cfg
removing: /var/lib/tftpboot/grub/local_legacy.cfg
removing: /var/lib/tftpboot/grub/local_powerpc-ieee1275.cfg
removing: /var/lib/tftpboot/grub/aarch64_menu_items.cfg
removing: /var/lib/tftpboot/grub/i386_menu_items.cfg
removing: /var/lib/tftpboot/grub/x86_64_menu_items.cfg
removing: /var/lib/tftpboot/grub/ppc_menu_items.cfg
removing: /var/lib/tftpboot/grub/ppc64_menu_items.cfg
removing: /var/lib/tftpboot/grub/ppc64le_menu_items.cfg
removing: /var/lib/tftpboot/grub/loongarch64_menu_items.cfg
removing: /var/lib/tftpboot/grub/amd64_menu_items.cfg
removing: /var/lib/tftpboot/grub/ppc64el_menu_items.cfg
removing: /var/lib/tftpboot/grub/ia64_menu_items.cfg
removing: /var/lib/tftpboot/grub/s390_menu_items.cfg
removing: /var/lib/tftpboot/grub/s390x_menu_items.cfg
removing: /var/lib/tftpboot/grub/i586_menu_items.cfg
removing: /var/lib/tftpboot/images/uos20-x86_64
copying bootloaders
running: ['rsync', '-rpt', '--copy-links', '--exclude=.cobbler_postun_cleanup', '/var/lib/cobbler/loaders/', '/var/lib/tftpboot']
received on stdout: 
received on stderr: 
running: ['rsync', '-rpt', '--copy-links', '--exclude=README.grubconfig', '/var/lib/cobbler/grub_config/', '/var/lib/tftpboot']
received on stdout: 
received on stderr: 
copying distros to tftpboot
copying files for distro: uos20-x86_64
trying hardlink /var/www/cobbler/distro_mirror/uos20-x86_64/images/pxeboot/vmlinuz -> /var/lib/tftpboot/images/uos20-x86_64/vmlinuz
trying hardlink /var/www/cobbler/distro_mirror/uos20-x86_64/images/pxeboot/initrd.img -> /var/lib/tftpboot/images/uos20-x86_64/initrd.img
copying images
generating PXE configuration files
generating PXE menu structure
copying files for distro: uos20-x86_64
trying hardlink /var/www/cobbler/distro_mirror/uos20-x86_64/images/pxeboot/vmlinuz -> /var/www/cobbler/images/uos20-x86_64/vmlinuz
trying hardlink /var/www/cobbler/distro_mirror/uos20-x86_64/images/pxeboot/initrd.img -> /var/www/cobbler/images/uos20-x86_64/initrd.img
Writing template files for uos20-x86_64
rendering DHCP files
generating /etc/dhcp/dhcpd.conf
processing boot_files for distro: uos20-x86_64
cleaning link caches
running post-sync triggers
running python triggers from /var/lib/cobbler/triggers/sync/post/*
running python trigger cobbler.modules.sync_post_restart_services
running: dhcpd -t -q
received on stdout: 
received on stderr: 
running: service dhcpd restart
received on stdout: 
received on stderr: 重定向至 /bin/systemctl restart dhcpd.service

running shell triggers from /var/lib/cobbler/triggers/sync/post/*
shell triggers finished successfully
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running python trigger cobbler.modules.managers.genders
running shell triggers from /var/lib/cobbler/triggers/change/*
shell triggers finished successfully
*** TASK COMPLETE ***


为避免发生未知问题,先把服务端所有服务重启
[root@cjy ~]# systemctl restart tftp httpd cobblerd
[root@cjy ~]# ss -antl
State     Recv-Q    Send-Q       Local Address:Port        Peer Address:Port    Process    
LISTEN    0         5                127.0.0.1:25151            0.0.0.0:*                  
LISTEN    0         5                  0.0.0.0:873              0.0.0.0:*                  
LISTEN    0         128                0.0.0.0:22               0.0.0.0:*                  
LISTEN    0         5                127.0.0.1:631              0.0.0.0:*                  
LISTEN    0         511                      *:443                    *:*                  
LISTEN    0         5                     [::]:873                 [::]:*                  
LISTEN    0         511                      *:80                     *:*                  
LISTEN    0         128                   [::]:22                  [::]:*                  
LISTEN    0         5                    [::1]:631                 [::]:*                  
  • 20
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值