现在 njet 支持yum源安装了,目前只支持 centos 7 和 x86_64架构!
具体安装方式如下:
step 1: 生成njet.repo
echo "
[opennjet]
name=OpenNJet
baseurl=https://njet.org.cn/download/linux/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://njet.org.cn/download/linux/centos/RPM-GPG-KEY-OpenNJet
" > /etc/yum.repos.d/njet.repo
step 2: 更新yum缓存
yum clean all
yum makecache # 类似于 apt update
step 3: 安装njet或njet-otel
yum install njet
yum install njet-otel
step 4: 启动njet服务
systemctl start nje
官网 了解更多