2019年6月28日星期五

Centos7 编译安装miniupnpd

由于centos7的yum不带miniupnpd,所以只能编译安装。

参考:
https://github.com/miniupnp/miniupnp/blob/master/miniupnpd/INSTALL

下载:
wget https://github.com/miniupnp/miniupnp/archive/miniupnpd_2_1.tar.gz

安装依赖包:
yum install gcc uuid-devel iptables-devel -y

编译安装:
make -f Makefile.linux config.h
make -f Makefile.linux
make -f Makefile.linux install

生成的命令在/usr/sbin/miniupnpd
配置文件在/etc/miniupnpd/miniupnpd.conf

完成!

没有评论:

发表评论

更换阿里云源

CentOS 7: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo http:/...