log.iodeployandinstallnode(略)2.安装log.io[root@dev-bizapp-211l~]#npmconfigsetregistryhttps://registry.npm.taobao.org[root@dev-bizapp-211l~]#npminstall-glog.io/data/xxxx-node/bin/log.io-server->/data/xxxx-node/lib/node_modules/log.io/bin/log.io-servernpmWARNws@7.2.3需要bufferutil@^4.0.1的对等体,但没有安装。您必须自己安装对等依赖项。npmWARNws@7.2.3需要utf-8-validate@^5.0.2的对等体,但没有安装。你必须自己安装对等依赖。+log.io@0.4.13[root@dev-bizapp-211llog.io-file-input]#cat/etc/profile.d/node.sh#setnodeenvironmentNODE_HOME=/data/xxxx-node/binPATH=/data/xxxx-node/bin:/data/xxxx-node/lib/node_modules/pm2/bin:/data/xxxx-java/bin:/data/xxxx-java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/binexportNODE_HOMEPATH//添加节点的log.io模块环境变量/data/xxxx-node/lib/node_modules/log.io/bin3.log.io客户端安装【root@dev-bizapp-211llog.io-file-input]#npminstall-glog.io-file-input/data/xxxx-node/bin/log.io-file-input->/data/xxxx-node/lib/node_modules/log.io-file-input/bin/log.io-file-input+log.io-file-input@0.4.13在0.724s配置log.io服务器端的config.json[root@dev-bizapp-211l日志中添加了来自2个贡献者的3个包.io-file-input]#cd/data/xxxx-node/lib/node_modules/log.io/[root@dev-bizapp-211llog.io]#lsbabel.config.jsbinconfig.jsonharvester.conflibLICENSEnode_modulespackage.jsonREADME.mdtsconfig.json[root@dev-bizapp-211llog.io]#pwd/data/xxxx-node/lib/node_modules/log.io[root@dev-bizapp-211l日志。io]#catconfig.json{"debug":true,"messageServer":{"port":6689,"host":"0.0.0.0"},"httpServer":{"port":6688,"host":"0.0.0.0"}}127.0.0.1最好改成0.0.0.0配置log.io-file-input客户端的config.json[root@dev-bizapp-211llog.io-file-input]#lsbabel.config.jsbinconfig.jsonlibLICENSEnode_modulespackage.jsonREADME.mdtsconfig.json[root@dev-bizapp-211llog.io-file-input]#pwd/data/xxxx-node/lib/node_modules/log.io-file-input[root@dev-bizapp-211llog.io-file-input]#catconfig.json{"messageServer":{"host":"192.168.120.25","port":6689},"inputs":[{"source":"biz_admin_management_system_app_dev.log","stream":"biz_admin_management_system_app_dev.log","config":{"path":"/data/logs/biz_admin_management_system_app_dev.log"}},{"source":"biz_cas_dev.log","stream"":"biz_cas_dev.log","config":{"path":"/data/logs/biz_cas_dev.log"}},{"source":"biz_member_process_center_logic_dev.log","stream":"biz_member_process_center_logic_dev.log","config":{"path":"/data/logs/biz_member_process_center_logic_dev.log"}},{"source":"biz_schedule_management_center_logic_dev.log","stream":"biz_schedule_management_center_logic_dev.log","config":{"path":"/data/logs/biz_schedule_management_center_logic_dev.log"}}]}运行测试服务器[root@localhostlog.io]#nohuplog.io-serverstart>logio.log&[1]60116[root@localhostlog.io]#nohup:忽略输入重定向错误到st??dout[root@localhostlog.io]#lsbabel.config.jsbinconfig.jsonlibLICENSElogio.lognode_modulespackage.jsonREADME.mdtsconfig.json[root@localhostlog.io]#catconfig.json{"debug":true,"messageServer":{"port":6689,"host":"0.0.0.0"},"httpServer":{"port":6688,"host":"0.0.0.0"}}[root@localhostlog.io]#netstat-tnlp活跃的互联网连接(仅限服务器)ProtoRecv-QSend-QLocalAddressForeignAddressStatePID/程序名称tcp000.0.0.0:33060.0.0.0:*LISTEN2368/mysqldtcp000.0.0.0:11940.0.0.0:*听1060/openvpntcp000.0.0.0:1110.0.0.0:*听1/systemdtcp000.0.0.0:220.0.0.0:*听1059/sshdtcp00127.0.0.1:250.0.0.0:*听2424/mastertcp000.0.0.0:66880.0.0.0:*听60116/节点tcp000.0.0.0:66890.0.0.0:*LISTEN60116/nodetcp600::111::::*LISTEN1/systemdtcp600::::22::::*LISTEN1059/sshdtcp600::1:25::::*LISTEN2424/主人[root@localhostlog.io]#clientlog.io-file-input(nohuplog.io-file-input##backgroundoperation)
