解决unix网络编程(第三版)的源代码编译的问题 -connect dennied
来源:互联网 发布:钢板下料软件 编辑:程序博客网 时间:2024/05/16 16:55
到官方网站下载源代码,先看readme.里头教你怎么做的.
如果你用ubuntu的话,在测试课本第5页的程序时,可能会遇到一个情况,connect dennied.
那是因为你的daytime服务没有开。
具体解决方案在
http://ubuntuforums.org/showthread.php?t=650791
摘录如下:
First, you'll need to install xinetd:
Next you'll need to enable the daytime and echo services by editing their config files
in /etc/xinetd.d (you should only need to change the disable option from yes to no)
Finally tell xinetd to reload the configuration:
Note that by default, anyone will be able to connect to these services. You can (if you want),
restrict access to only allow connections from certain addresses, to disallow connections from
certain addresses, or to only accept connections from a specific network interface, by adding
only_from, no_access or bind options to the configuration files (have a look at the xinetd.conf man page
for details on these and other configuration options).
First, you'll need to install xinetd:
Code:
sudo aptitude install xinetd
in /etc/xinetd.d (you should only need to change the disable option from yes to no)
Finally tell xinetd to reload the configuration:
Code:
sudo invoke-rc.d xinetd reload
restrict access to only allow connections from certain addresses, to disallow connections from
certain addresses, or to only accept connections from a specific network interface, by adding
only_from, no_access or bind options to the configuration files (have a look at the xinetd.conf man page
Code:
man xinetd.conf
- 解决unix网络编程(第三版)的源代码编译的问题 -connect dennied
- 解决unix网络编程(第三版)第一个程序connect dennied.问题&Open 'daytiime' service
- 关于编译unix网络编程第二卷--进程间通信源代码的问题及解决
- 编译unix网络编程源代码时遇到的问题
- UNIX网络编程卷1(第三版)关于源程序编译出错问题的详细解决方法
- Unix网络编程 源代码编译问题
- UNIX网路编程(第三版) 关于源代码的使用问题
- UNIX网络编程之源代码的编译和使用
- 《UNIX网络编程》一书中源代码在ubuntu下如何编译的问题
- Unix网络编程第三版源码编译
- Unix网络编程第三版源码编译
- Unix网络编程第三版源码编译
- Unix网络编程第三版源码编译
- Unix网络编程第三版源码编译
- 编译UNIX网络编程源代码
- unix网络编程源代码编译
- Linux - Unix环境高级编程(第三版) 源代码编译(即头文件apue.h如何使用问题)
- 《Unix网络编程(第3版)》代码编译的一些问题
- NO.39 对Arch3中转译资源文件CMD的改进(native2ascii)
- 发牢骚了
- CListCtrl行高的修改
- 基于比较的排序都逃脱不了NlogN的宿命
- http://docs.zope.org/zope2/zope2book/ZopeArchitecture.html
- 解决unix网络编程(第三版)的源代码编译的问题 -connect dennied
- SDP中Video属性fmtp的含义,比如a=fmtp:34 QCIF=1;CIF=1
- Solaris下安装gcc(转载)
- 文档对象功能及其作用
- js去空格的三种方法
- 在应用程序中播放声音资源文件
- UNIX网络编程 源代码 使用方法
- 嵌套查询Max问题?
- CentOS5.5安装Oracle11g第二版