当前位置: 首页 > news >正文

Linux 中检查 Apache Web Server (httpd) 正常运行时间的 4 种方法

注:机翻,未校。


4 Ways To Check Uptime of Apache Web Server (httpd) on Linux

November 28, 2019

by Magesh Maruthamuthu

We all know about the purpose of uptime command in Linux.
我们都知道 Linux 中 uptime 命令的目的。

It is used to check the uptime of the Linux system, how long the system has been running without restarting.
它用于检查 Linux 系统的正常运行时间,系统在不重新启动的情况下运行了多长时间。

If you want to check other service uptime like Apache, MySQL, sftp, etc. on Linux, how do you do that?
如果您想在 Linux 上检查其他服务的正常运行时间,如 Apache、MySQL、sftp 等,您该怎么做?

Each service has their own command to check the service uptime.
每个服务都有自己的命令来检查服务正常运行时间。

Also, we can check the service uptime using the ps command because there are many options to collect this information.
此外,我们可以使用 ps 命令检查服务正常运行时间,因为有很多选项可以收集此信息。

It shows when the parent process started (which I say when it restarts or starts) and how long the service runs with the [DD:HH:MM:SS] format.
它显示父进程的启动时间(我说的是它重新启动或启动的时间)以及服务以 [DD:HH:MM:SS] 格式运行的时间。

In this tutorial, we are going to show you how to check Apache web server uptime using different method.
在本教程中,我们将向您展示如何使用不同的方法检查 Apache Web 服务器的正常运行时间。

This is a small tutorial and very useful if you want to get Apache web server uptime for some reason.
这是一个小教程,如果您出于某种原因想要获得 Apache Web 服务器的正常运行时间,则非常有用。

This can be done using the following 4 methods.
这可以使用以下 4 种方法完成。

  • Apache mod_status module
  • ps command ps
  • systemctl command systemctl
  • proc filesystem (procfs)

Method-1: How to Check Apache (httpd) Web Server Uptime Using mod_status Module on Linux

方法 1:如何在 Linux 上使用 mod_status 模块检查 Apache (httpd) Web 服务器的正常运行时间

The Apache mode_status module allows a server administrator to check Apache Web server uptime, concurrent connections, and server performance with a given interval through the CLI and GUI.
Apache mode_status 模块允许服务器管理员通过 CLI 和 GUI 在给定的时间间隔内检查 Apache Web 服务器的正常运行时间、并发连接和服务器性能。

However, it is disabled by default and must be enabled to use the feature.
但是,默认情况下,它是禁用的,必须启用才能使用该功能

The Apache “mod_status” module displays the following useful information about the Apache Web server.
Apache “mod_status” 模块显示以下有关 Apache Web 服务器的有用信息。

  • Apache Web server built & version information
    Apache Web 服务器构建和版本信息
  • Web server last restart & uptime information
    Web 服务器上次重启和正常运行时间信息
  • Total number of incoming requests
    传入请求总数
  • Idle workers 空闲 worker
  • Server load & Web server CPU usage
    服务器负载和 Web 服务器 CPU 使用率
  • Total traffic (Bandwidth usage)
    总流量(带宽使用量)
  • Average number of requests per second
    每秒平均请求数
  • Average number of bytes per request
    每个请求的平均字节数
  • Number of bytes served per second
    每秒提供的字节数
  • How many requests currently being processed
    当前正在处理的请求数
  • Details about running process
    有关正在运行的进程的详细信息

How to Install and Enable Apache’s mod_status Module on Linux

如何在 Linux 上安装和启用 Apache 的 mod_status 模块

By default, the Apache “mod_status” module is installed on Apache. But reports are disabled and you have to uncomment it to access it. To do so, you need to uncomment the codes below in your Apache configuration file based on your distribution.
默认情况下,Apache “mod_status” 模块安装在 Apache 上。但是报表被禁用,您必须取消注释才能访问它。为此,您需要根据您的分配在 Apache 配置文件中取消注释以下代码。

See the following article if you want to verify the Apache web server performance using the mod_status module.
如果要使用 mod_status 模块验证 Apache Web 服务器性能,请参阅以下文章。

For RHEL/CentOS/Fedora systems, open the /etc/httpd/conf/httpd.conf file and uncomment the below codes.
对于 RHEL/CentOS/Fedora 系统,请打开 /etc/httpd/conf/httpd.conf 文件并取消注释以下代码。

[For Apache 2.2]
<Location /server-status>SetHandler server-statusOrder deny,allowDeny from allAllow from all
</Location>[For Apache 2.4]
<Location "/server-status">SetHandler server-statusRequire host localhost
</Location>

For Debian/Ubuntu systems, open /etc/apache2/mods-enabled/status.conf file and uncomment the below codes.
对于 Debian/Ubuntu 系统,请打开 /etc/apache2/mods-enabled/status.conf 文件并取消注释以下代码。

<Location "/server-status">SetHandler server-statusRequire local#Require ip 192.0.2.024
</Location>

Save and close the file and restart the Apache web server service.
保存并关闭文件,然后重新启动 Apache Web 服务器服务。

Use the below commands to restart the Apache (httpd) server in Linux.
使用以下命令在 Linux 中重新启动 Apache (httpd) 服务器。

For SysVinit Systems – openSUSE & Debian based systems.
对于 SysVinit 系统 – 基于 openSUSE & Debian 的系统。

# service apache2 restart
or
# /etc/init.d/apache2 restart

For SysVinit Systems – RHEL (RedHat) based systems.
对于 SysVinit 系统 – 基于 RHEL (RedHat) 的系统。

# service httpd restart
or
# /etc/init.d/httpd restart

For systemd Systems – openSUSE & Debian based systems.
对于 systemd 系统 – 基于 openSUSE & Debian 的系统。

# systemctl restart apache2.service
or
# systemctl restart apache2

For systemd Systems – RHEL (RedHat) based systems.
对于 systemd 系统 – 基于 RHEL (RedHat) 的系统。

# systemctl restart httpd
or
# systemctl restart httpd.service

Run the following command to get the Apache uptime.
运行以下命令以获取 Apache 正常运行时间。

$ apachectl statusApache Server Status for localhost (via 127.0.0.1)Server Version: Apache/2.4.29 (Ubuntu)Server MPM: preforkServer Built: 2019-09-16T12:58:48--------------------------------------------------------------------------Current Time: Wednesday, 27-Nov-2019 13:06:03 ISTRestart Time: Wednesday, 27-Nov-2019 12:24:26 ISTParent Server Config. Generation: 2Parent Server MPM Generation: 1Server uptime: 41 minutes 36 secondsServer load: 0.00 0.02 0.14Total accesses: 8 - Total Traffic: 88 kBCPU Usage: u0 s0 cu0 cs0.00321 requests/sec - 36 B/second - 11.0 kB/request1 requests currently being processed, 4 idle workers__W__...........................................................Scoreboard Key:"_" Waiting for Connection, "S" Starting up, "R" Reading Request,"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,"C" Closing connection, "L" Logging, "G" Gracefully finishing,"I" Idle cleanup of worker, "." Open slot with no current process

Alternatively, you can run this command using a Linux text-based browser.
或者,您也可以使用基于 Linux 文本的浏览器运行此命令。

$ elinks http://localhost/server-status

Apache uptime with page refresh every N seconds.
Apache 正常运行时间,每 N 秒刷新一次页面。

$ elinks http://localhost/server-status?refresh=5

Method-2: How to Check Apache (httpd) Web Server Uptime Using the ps Command on

Linux 方法 2:如何在 Linux 上使用 ps 命令检查 Apache (httpd) Web 服务器的正常运行时间

The ps command displays information about a selection of the active processes. It displays the process ID (pid=PID), the terminal associated with the process (tname=TTY), the cumulated CPU time in [DD-] hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD). Output is unsorted by default.
ps 命令显示有关所选活动进程的信息。它显示进程 ID (pid=PID)、与进程关联的终端 (tname=TTY)、[DD-] hh:mm:ss 格式的累积 CPU 时间 (time=TIME) 和可执行文件名称 (ucmd=CMD)。默认情况下,输出未排序。

To do so, you need to find the PID of the Apache process, and it can be easily identified using the pidof command.
为此,您需要找到 Apache 进程的 PID,并且可以使用 pidof 命令轻松识别它。

For RPM based systems:
对于基于 RPM 的系统:

# pgrep httpd | head -1
10915

For DEB based systems:
对于基于 DEB 的系统:

# pgrep apache2 | head -1
1111

Once you get the Apache PID, use the following command to get it.
获取 Apache PID 后,使用以下命令获取它。

# ps -p 10915 -o etimeELAPSED05:59:59

The above output shows the elapsed time since the process was started. As per the above output, it’s up and running 5 hours, 59 mins, and 59 sec.
上述输出显示自进程启动以来经过的时间。根据上述输出,它已启动并运行 5 hours, 59 mins, and 59 sec

Method-3: How to Check Apache (httpd) Web Server Uptime Using the systemctl Command on Linux

方法 3:如何在 Linux 上使用 systemctl 命令检查 Apache (httpd) Web 服务器的正常运行时间

The systemctl command is used to control the systemd service manager. This is a replacement for the old SysVinit system management, and most of the modern Linux operating systems have been moved to the systemd.
systemctl 命令用于控制 systemd 服务管理器。这是旧 SysVinit 系统管理的替代品,大多数现代 Linux 操作系统已迁移到 systemd。

# systemctl status httpd● httpd.service - Web server ApacheLoaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)Active: active (running) since Wed 2019-11-27 03:43:37 UTC; 5h 50min agoProcess: 10907 ExecStop=/usr/local/apache/bin/apachectl graceful-stop (code=exited, status=0/SUCCESS)Process: 11025 ExecReload=/usr/local/apache/bin/apachectl graceful (code=exited, status=0/SUCCESS)Process: 10912 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=0/SUCCESS)Main PID: 10915 (httpd)CGroup: /system.slice/httpd.service├─10915 /usr/local/apache/bin/httpd -k start├─11082 /usr/local/apache/bin/httpd -k start├─11083 /usr/local/apache/bin/httpd -k start├─11084 /usr/local/apache/bin/httpd -k start└─11681 /usr/local/apache/bin/httpd -k startNov 27 03:43:37 ns1.nsforcdn.com systemd [1]: Started Web server Apache.
Nov 27 03:43:38 ns1.nsforcdn.com systemd [1]: Reloading Web server Apache.
Nov 27 03:43:38 ns1.nsforcdn.com apachectl [11025]: AH00112: Warning: DocumentRoot [/home/nowdigitaleasy/public_html/billing] does not exist
Nov 27 03:43:38 ns1.nsforcdn.com apachectl [11025]: AH00112: Warning: DocumentRoot [/home/nowdigitaleasy/public_html/billing] does not exist
Nov 27 03:43:38 ns1.nsforcdn.com apachectl [11025]: AH00112: Warning: DocumentRoot [/home/nutechnologyinc/public_html/poc.nutechnologyinc.com] does not exist
Nov 27 03:43:38 ns1.nsforcdn.com apachectl [11025]: AH00112: Warning: DocumentRoot [/home/witskills/public_html] does not exist
Nov 27 03:43:38 ns1.nsforcdn.com apachectl [11025]: AH00112: Warning: DocumentRoot [/home/witskills/public_html] does not exist
Nov 27 03:43:38 ns1.nsforcdn.com systemd [1]: Reloaded Web server Apache.
Hint: Some lines were ellipsized, use -l to show in full.

Method-4: How to Check Apache (httpd) Web Server Uptime Using the proc filesystem (procfs) on Linux

方法 4:如何在 Linux 上使用 proc 文件系统 (procfs)检查 Apache (httpd) Web 服务器的正常运行时间

The proc filesystem (procfs) is a special filesystem in Unix-like operating systems that presents information about processes and other system information.
proc 文件系统 (procfs) 是类 Unix 操作系统中的一种特殊文件系统,用于显示有关进程的信息和其他系统信息。

It’s sometimes referred to as a process information pseudo-file system. It doesn’t contain ‘real’ files but run time system information (e.g. system memory, devices mounted, hardware configuration, etc).
它有时称为进程信息伪文件系统。它不包含 “真实” 文件,而是运行时系统信息(例如系统内存、挂载的设备、硬件配置等)。

Once you have Apache PID, use the following proc file system to identify it. As per the below output the httpd process has been running since Aug 05 at 17:20.
拥有 Apache PID 后,请使用以下 proc 文件系统来识别它。根据以下输出,httpd 进程自 8 月 5 日 17:20 以来一直在运行。

# ls -ld /proc/10915dr-xr-xr-x. 9 root root 0 Aug 5 17:20 /proc/10915/

via:

  • 4 Ways To Check Uptime of Apache Web Server (httpd) on Linux | 2DayGeek

    https://www.2daygeek.com/check-find-apache-httpd-web-server-uptime-linux/

相关文章:

Linux 中检查 Apache Web Server (httpd) 正常运行时间的 4 种方法

注&#xff1a;机翻&#xff0c;未校。 4 Ways To Check Uptime of Apache Web Server (httpd) on Linux November 28, 2019 by Magesh Maruthamuthu We all know about the purpose of uptime command in Linux. 我们都知道 Linux 中 uptime 命令的目的。 It is used to c…...

Linux驱动开发--字符设备驱动开发

一、概述 字符设备是 Linux 驱动中最基本的一类设备驱动,字符设备就是一个一个字节,按照字节 流进行读写操作的设备,读写数据是分先后顺序的。比如我们最常见的点灯、按键、 IIC、 SPI, LCD 等等都是字符设备,这些设备的驱动就叫做字符设备驱动。 Linux 应用程序对驱动程…...

MarkItDown的使用(将Word、Excel、PDF等转换为Markdown格式)

MarkItDown的使用&#xff08;将Word、Excel、PDF等转换为Markdown格式&#xff09; 本文目录&#xff1a; 零、时光宝盒&#x1f33b; 一、简介 二、安装 三、使用方法 3.1、使用命令行形式 3.2、用 Python 调用 四、总结 五、参考资料 零、时光宝盒&#x1f33b; &a…...

一文彻底拿捏DevEco Studio的使用小技巧

程序员Feri一名12年的程序员,做过开发带过团队创过业,擅长Java相关开发、鸿蒙开发、人工智能等,专注于程序员搞钱那点儿事,希望在搞钱的路上有你相伴&#xff01;君志所向,一往无前&#xff01; 0.安装DevEco Studio DevEco Studio面向HarmonyOS应用及元服务开发者提供的集成开…...

R9000P键盘失灵解决办法

问题描述 突然&#xff0c;就是很突然&#xff0c;我买的R9000P 2024不到三个月&#xff0c;键盘突然都不能用了&#xff0c;是所有键盘按键都无效的那种。&#xff08;可以使用外接键盘&#xff09; 解决办法 我本科室友说的好哈&#xff0c;全坏全没坏。 &#xff08;该解…...

【Linux之Shell脚本实战】编写简单计算器shell脚本

【Linux之Shell脚本实战】编写简单计算器shell脚本 一、Shell脚本介绍1.1 Shell脚本简介1.2 Shell脚本特点二、脚本要求三、检查本地环境3.1 本地环境规划3.2 检查本地系统3.3 检查系统内核版本四、编写脚本4.1 脚本内容4.2 脚本分析整体逻辑各功能实现使用方法4.3 执行效果五、…...

【0x001D】HCI_Read_Remote_Version_Information命令详解

目录 一、命令概述 二、命令格式及参数说明 2.12. HCI_Read_Remote_Version_Information 命令格式 2.2. Connection_Handle 三、生成事件 3.1. HCI_Command_Status 事件 3.2. HCI_Read_Remote_Version_Information_Complete 事件 四、命令执行流程 4.1. 命令发起阶段(…...

秒鲨后端之MyBatis【2】默认的类型别名、MyBatis的增删改查、idea中设置文件的配置模板、MyBatis获取参数值的两种方式、特殊SQL的执行

别忘了请点个赞收藏关注支持一下博主喵&#xff01;&#xff01;&#xff01;! ! ! 下篇更新&#xff1a; 秒鲨后端之MyBatis【3】自定义映射resultMap、动态SQL、MyBatis的缓存、MyBatis的逆向工程、分页插件。 默认的类型别名 MyBatis的增删改查 添加 <!--int insertUs…...

python中使用selenium执行组合快捷键ctrl+v不生效问题

在执行ctrlv进行粘贴时&#xff0c;绑定一个页面上的元素对象&#xff08;无论元素对象是否是引用过期或者是粘贴的目标文本区&#xff0c;但前提需要粘贴的目标文本区获取焦点&#xff09;执行ctrlv后可以生效。执行粘贴组合快捷键&#xff08;ctrlv&#xff09;的示例代码 se…...

大语言模型中的Agent;常见的Agent开发工具或框架

大语言模型中的Agent 大语言模型中的Agent是指以大语言模型为核心驱动,具有自主理解、感知、规划、记忆和使用工具等能力,能够自动化执行复杂任务的系统.以下是一些例子: AutoGPT:它相当于一个完整的工具包,可以为各种项目构建和运行自定义AI Agent。使用OpenAI的GPT-4和…...

VSCode 性能优化指南:提高编码效率,减少资源占用

Visual Studio Code&#xff08;简称VSCode&#xff09;是一款广受欢迎的代码编辑器&#xff0c;以其强大的功能和丰富的插件生态系统著称。然而&#xff0c;随着项目规模的扩大和插件数量的增加&#xff0c;VSCode 的性能可能会受到影响。本文将介绍一系列优化措施&#xff0c…...

深入理解C++ 容器类

承接Qt/C软件开发项目&#xff0c;高质量交付&#xff0c;灵活沟通&#xff0c;长期维护支持。需求所寻&#xff0c;技术正适&#xff0c;共创完美&#xff0c;欢迎私信联系&#xff01; 引言 C 标准库提供了丰富的容器&#xff08;container&#xff09;类型&#xff0c;用于存…...

优化 invite_codes 表的 SQL 创建语句

-- auto-generated definition create table invite_codes (id int auto_incrementprimary key,invite_code varchar(6) not null comment 邀请码&#xff0c;6位整数&#xff0c;确保在有效期内…...

springboot容器无法获取@Autowired对象,报null对象空指针问题的解决方式

示例错误代码&#xff1a; package com.uniin.ib.provider.iot.handle;Slf4j Component public class FireStringInboundHandler extends ChannelInboundHandlerAdapter {Autowiredprivate RsFireMonitoringMapper rsFireMonitoringMapper;Autowiredprivate RsFireAlertMapper…...

服务器数据恢复—Lustre分布式文件系统下服务器节点进水的数据恢复案例

服务器数据恢复环境&故障&#xff1a; 5台节点服务器&#xff0c;每台节点服务器上有一组RAID5阵列。每组RAID5阵列上有6块硬盘&#xff08;其中1块硬盘设置为热备盘&#xff0c;其他5块硬盘为数据盘&#xff09;。上层系统环境为Lustre分布式文件系统。 机房天花板漏水导致…...

由于这些关键原因,我总是手边有一台虚拟机

概括 虚拟机提供了一个安全的环境来测试有风险的设置或软件,而不会影响您的主系统。设置和保存虚拟机非常简单,无需更改主要设备即可方便地访问多个操作系统。运行虚拟机可能会占用大量资源,但现代 PC 可以很好地处理它,为实验和工作流程优化提供无限的可能性。如果您喜欢使…...

word无法创建工作文件,检查临时环境变量。

word无法创建工作文件&#xff0c;检查临时环境变量。 word preview版本&#xff0c;关联打开文件出现报错。word无法创建工作文件&#xff0c;检查临时环境变量。 打开注册表&#xff0c;删除键 Word Preview: HKCR\CLSID{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE} PowerPoint …...

照亮技术传播之路:构建卓越的技术文档

照亮技术传播之路&#xff1a;构建卓越的技术文档 引言 在信息技术快速发展的今天&#xff0c;技术文档作为沟通开发者、用户以及其他利益相关者的桥梁&#xff0c;其重要性不言而喻。一份优秀的技术文档不仅能够帮助团队成员理解项目背景和技术细节&#xff0c;还能够在产品…...

20241225在ubuntu20.04.5下监控SSD

20241225在ubuntu20.04.5下监控SSD 2024/12/25 20:29 参考资料&#xff1a; 百度&#xff1a;ubuntu查看ssd寿命 方法 1&#xff1a;使用「磁盘」工具监测 SSD 健康状态 sudo apt install gnome-disk-utility 方法 2&#xff1a;使用 smartctl 工具检查 SSD 健康状态 Ubuntu 和…...

Flink定时器

flink的定时器都是基于事件时间&#xff08;event time&#xff09;或事件处理时间&#xff08;processing time&#xff09;的变化来触发响应的。对一部分新手玩家来说&#xff0c;可能不清楚事件时间和事件处理时间的区别。我这里先说一下我的理解&#xff0c;防止下面懵逼。…...

机器学习算法04:SVC 算法(向量机分类)

目录 一、算法核心特点 二、使用场景 三、代码示例&#xff08;以 Python 的 scikit - learn 库为例&#xff09; 四、与其他分类算法对比 SVC 即 Support Vector Classification&#xff0c;是支持向量机&#xff08;SVM&#xff09;在分类任务中的具体实现。在你正在阅读…...

《高等数学》(同济大学·第7版) 的 详细章节目录

上册 第一章 函数与极限 映射与函数 数列的极限 函数的极限 无穷小与无穷大 极限运算法则 极限存在准则 两个重要极限 无穷小的比较 函数的连续性与间断点 连续函数的运算与初等函数的连续性 闭区间上连续函数的性质 &#x1f539; 重点节&#xff1a; 2-3&#xff…...

ICDMC 2025:创新媒体模式,迎接数字时代的挑战

2025年数字媒体与通讯国际会议将在风景秀丽的中国山东举行。此次会议致力于促进数字媒体和通讯领域的国际合作与交流&#xff0c;为相关产业发展提供智力支持和技术引领。我们诚挚邀请来自世界各地的学者、研究人员和行业专家参加本次会议&#xff0c;共同探讨前沿问题和发展方…...

Vue能启动但访问空白?并报”export ‘default’ (imported as ‘Vue’) was not found in ‘vue’

场景 如图&#xff0c;vue项目的node_modules下载顺利&#xff0c;启动也顺利&#xff0c;但是访问却为空白页面 虽然页面是空白&#xff0c;但是通过浏览器控制台可以看出并非简单的空白&#xff0c;确实有不兼容问题在里面 分析问题 从上图浏览器控制台可以看出&#xff0c…...

Acrobat DC v25.001 最新专业版已破,像word一样编辑PDF!

在数字化时代&#xff0c;PDF文件以其稳定性和通用性成为了文档交流和存储的热门选择。无论是阅读、编辑、转换还是转曲&#xff0c;大家对PDF文件的操作需求日益增加。因此&#xff0c;一款出色的PDF处理软件不仅要满足多样化的需求&#xff0c;还要通过简洁的界面和强大的功能…...

如何制作全景VR图?

全景VR图&#xff0c;特别是720度全景VR&#xff0c;为观众提供一种沉浸式体验。 全景VR图能够捕捉场景的全貌&#xff0c;还能将多个角度的图片或视频无缝拼接成一个完整的全景视角&#xff0c;让观众在虚拟环境中自由探索。随着虚拟现实&#xff08;VR&#xff09;技术的飞速…...

后端项目中静态文案国际化语言包构建选型

这是一个很关键的问题。在做国际化&#xff08;i18n&#xff09;时&#xff0c;不同语言包格式如 .resx、.properties 和 .json 都可用&#xff0c;但各自有适用场景、特性与限制&#xff0c;你在选择时可以根据你的开发语言、生态和维护成本权衡。 ✅ 一张对比表&#xff1a;.…...

C++之string的模拟实现

string 手写C字符串类类的基本结构与成员变量一、构造函数与析构函数二、赋值运算符重载三、迭代器支持四、内存管理与扩容机制五、字符串操作函数六、运算符重载总结 手写C字符串类 从零实现一个简易版std::string 类的基本结构与成员变量 namespace zzh { class string { …...

25、web场景-【源码分析】-静态资源原理

25、web场景-【源码分析】-静态资源原理 静态资源原理主要涉及Spring Boot如何管理和提供静态文件&#xff0c;如CSS、JavaScript、图片等。以下是详细的分析&#xff1a; #### 默认静态资源目录 Spring Boot默认将以下目录作为静态资源的存放位置&#xff1a; - classpath:/…...

Unity 中实现首尾无限循环的 ListView

之前已经实现过&#xff1a; Unity 中实现可复用的 ListView-CSDN博客文章浏览阅读5.6k次&#xff0c;点赞2次&#xff0c;收藏27次。源码已放入我的 github&#xff0c;地址&#xff1a;Unity-ListView前言实现一个列表组件&#xff0c;表现方面最核心的部分就是重写布局&…...