기술나눔

Ubuntu/Openwrt는 lua를 사용하여 http 및 https 요청을 보냅니다.

2024-07-08

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. http 및 https 요청을 보내는 lua를 지원하는 Ubuntu 구성

1.1. 적절한 미러 소스 구성

Ubuntu 22.04.2 LTS(GNU/Linux 6.5.0-41-generic x86_64)에 오신 것을 환영합니다.

링크: 한국어: https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.6c1a1b117VwAM7

sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

将下面的ubuntu 22.04 LTS (jammy) 配置配置到这个源文件中
sudo mv /etc/apt/sources.list

Ubuntu 22.04 LTS(jammy) 구성은 다음과 같습니다.

deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

1.2. 관련 Lua 관련 패키지를 설치합니다.

sudo apt update
sudo apt install -y lua5.3
lua -v
sudo apt install -y liblua5.3-dev

sudo apt install -y luarocks
sudo luarocks install luasocket

2. Openwrt 구성 menuconfig는 http 및 https 요청을 전송하는 lua를 지원합니다.

2.1. 메뉴 구성 구성

구성이 선택됨 Languages -