1 安装nx软件包
# yum install -y freenx
可能需要的包 nc,expect,nx
2 安装nx
# nxsetup --install --setup-nomachine-key
3 配置nx
# cd /etc/nxserver/
# cp node.conf.sample node.conf
修改 node.conf ENABLE_SSH_AUTHENTICATION="1"
4 重启 nx
# nxserver --restart
5 进行测试
不再详细描述
6 错误处理
错误:204 Authentication failed
认证错误,需要使用nomachine的key,执行如下命令:nxsetup --install --clean --purge --setup-nomachine-key