《Unix网络编程卷1-套接字联网API》第一个例子编译—-可以看看相应 的网络博客
http://blog.youkuaiyun.com/lidna242/article/details/47047227
《Unix网络编程卷1-套接字联网API》第一个例子编译 不通过问题解决 –看看环境编程
http://blog.youkuaiyun.com/21aspnet/article/details/6682813
在CentOS中开启daytime服务
[root@localhost ~]# cd /etc/xinetd.d/
[root@localhost xinetd.d]# ls
chargen-dgram discard-dgram eklogin krb5-telnet time-dgram
chargen-stream discard-stream ekrb5-telnet kshell time-stream
daytime-dgram echo-dgram gssftp rsync
daytime-stream echo-stream klogin tcpmux-server
[root@localhost xinetd.d]# vim daytime-stream
[root@localhost xinetd.d]# vim daytime-dgram
[root@localhost xinetd.d]# /etc/init.d/xinetd restart
将daytime-dgram和daytime-stream中的disable由yes改为no, 重启服务就OK了
需要安装xinetd.d
yum install xinetd -y
《网络编程》关于 UNIX网络编程 卷1 的 unp.h 和源码编译问题
service xinetd restart
出现问题