---
title: netty-all-4.0.23.Final
description: "1. 下载APR源码。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/tpdl/kunpengnettyall4117_02_0014.html
sourcePath: /source/zh/kunpengbds/ecosystemEnable/tpdl/kunpengnettyall4117_02_0014.html
indexId: 5e1466e6105600fa20475a2308a4711d5cce12819288cd45766042dee33a074e75
---
# netty-all-4.0.23.Final

#### 安装APR

1. 下载APR源码。
  1 wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz

2. 解压APR源码。
  1 tar -xvzf apr-1.5.2.tar.gz

3. 进入APR源码解压后的目录。
  1 cd apr-1.5.2

4. 将APR指定安装到“/usr/local/apr”目录。
  1 2 ./configure --prefix=/usr/local/apr make && make install


#### 安装netty-tcnative-1.1.30.Fork2源码

1. 下载netty-tcnative-1.1.30.Fork2源码。
  1 2 wget https://codeload.github.com/netty/netty-tcnative/tar.gz/netty-tcnative-1.1.30.Fork2 mv netty-tcnative-1.1.30.Fork2 netty-tcnative-1.1.30.Fork2.tar.gz

2. 解压源码包。
  1 tar -zxvf netty-tcnative-1.1.30.Fork2.tar.gz

3. 进入Netty解压目录。
  1 cd netty-tcnative-netty-tcnative-1.1.30.Fork2

4. 编译打包到Maven本地仓库。
  1 mvn install


#### 安装netty-4.0.23源码

1. 下载netty-4.0.23源码。
  1 wget https://github.com/netty/netty/archive/netty-4.0.23.Final.tar.gz

2. 解压源码包。
  1 tar -zxvf netty-4.0.23.Final.tar.gz

3. 进入Netty解压目录。
  1 cd netty-netty-4.0.23.Final

4. 编译生成JAR包，netty-all-4.0.23.Final.jar在“all/target”目录，netty-transport-native-epoll-4.0.23.Final.jar、netty-transport-native-epoll-4.0.23.Final-linux-aarch64_64.jar在“transport-native-epoll/target”目录。
  1 mvn package -DskipTests
