Linux 下NEWS Server(INN)架设全过程
新闻服务器虽然将慢慢的被BBS所取代,但在局域网上还是有一定的存在价值,以下是以RHEL5.2为例,介绍如何架设INND 服务器:
1. 安装INND组件:
yum install inn*
2. 安装完成,当第一次启动INN时需先执下以下三条指令:
#./usr/lib/news/bin/makehistory ------------------------>在/var/lib/news目录下,产生history档
#./usr/lib/news/bin/makedbz -i -o ---------------------->在/var/lib/news目录下,建立history.dir、history.hash及history.hash等三个文件.
# chown -R news.news /var/lib/news /etc/news /var/spool/news ------------------>将这三个目录下的所有文件及目录的拥有者及所属群组均改为news.
3. 启动INN并测试INN服务器:
#service innd start
Starting INND system: Starting innd. [ OK ]
#telnet localhost 119 ------------------>INN的通迅端口默认使用119
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 abc.test.com InterNetNews server INN 2.4.3 ready
^]
telnet> q
Connection closed.
4. 如果想开机就启动INND服务,可以运行以下指令:
#chkconfig --level 35 innd on
5. 设定/etc/news/inn.conf
此文件必需设定此项:
server: abc.test.com ---------------->此处可以是IP/电脑名/域名
其它的设定可以使用: man inn.conf 查看具体每项设定的功能,在此不在详述
6. 设定/etc/news/readers.conf来控制使用者存取的权限:
auth "localhost" {
hosts: "*.test.com, 10.141.77.0/24"
default: "*"
}
access "localhost" {
users: "*"
newsgroups: "*"
access: RPA
}
1. 安装INND组件:
yum install inn*
2. 安装完成,当第一次启动INN时需先执下以下三条指令:
#./usr/lib/news/bin/makehistory ------------------------>在/var/lib/news目录下,产生history档
#./usr/lib/news/bin/makedbz -i -o ---------------------->在/var/lib/news目录下,建立history.dir、history.hash及history.hash等三个文件.
# chown -R news.news /var/lib/news /etc/news /var/spool/news ------------------>将这三个目录下的所有文件及目录的拥有者及所属群组均改为news.
3. 启动INN并测试INN服务器:
#service innd start
Starting INND system: Starting innd. [ OK ]
#telnet localhost 119 ------------------>INN的通迅端口默认使用119
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 abc.test.com InterNetNews server INN 2.4.3 ready
^]
telnet> q
Connection closed.
4. 如果想开机就启动INND服务,可以运行以下指令:
#chkconfig --level 35 innd on
5. 设定/etc/news/inn.conf
此文件必需设定此项:
server: abc.test.com ---------------->此处可以是IP/电脑名/域名
其它的设定可以使用: man inn.conf 查看具体每项设定的功能,在此不在详述
6. 设定/etc/news/readers.conf来控制使用者存取的权限:
auth "localhost" {
hosts: "*.test.com, 10.141.77.0/24"
default: "*"
}
access "localhost" {
users: "*"
newsgroups: "*"
access: RPA
}
相关推荐
IT之家 2020-03-11
graseed 2020-10-28
zbkyumlei 2020-10-12
SXIAOYI 2020-09-16
jinhao 2020-09-07
impress 2020-08-26
liuqipao 2020-07-07
淡风wisdon大大 2020-06-06
yoohsummer 2020-06-01
chenjia00 2020-05-29
baike 2020-05-19
扭来不叫牛奶 2020-05-08
hxmilyy 2020-05-11
黎豆子 2020-05-07
xiongweiwei00 2020-04-29
Cypress 2020-04-25
冰蝶 2020-04-20