1.安装编译依赖
yum install -y ncurses-devel
2.下载相关文件
wget http://sourceforge.net/projects/nmon/files/lmon16j.c
wget http://sourceforge.net/projects/nmon/files/makefile
3.修改makefile文件
FILE=lmon16j.c
Kunpeng
nmon_arm64_kunpeng: $(FILE)
cc -o nmon_arm64_kunpeng $(FILE) $(CFLAGS) $(LDFLAGS) -D ARM
4.开始编译
make