#adduser ircadmin
#cd /home/ircadmin
#wget http://puzzle.dl.sourceforge.net ... cd-hybrid-7.2.3.tgz
ln -s /usr/kerberos/include/com_err.h /usr/include/
ln -s /usr/kerberos/include/profile.h /usr/include/
ln -s /usr/kerberos/include/krb5.h /usr/include/
#cd /home/ircadmin/
#tar ircd-hybrid-7.2.3.tgz
#cd ircd-hybrid-7.2.3
#./configure --enable-openssl(为了起用支持ssl)
#make
#make install
cp etc/example.conf /usr/local/ircd/etc/ircd.conf
#openssl genrsa -out /usr/local/ircd/etc/rsa.key 2048
Generating RSA private key, 2048 bit long modulus
.............................................................................+++
openssl rsa -in /usr/local/ircd/etc/rsa.key -pubout -out /usr/local/ircd/etc/rsa.pub
chmod 0600 /usr/local/ircd/etc/rsa.key
chmod 0644 /usr/local/ircd/etc/rsa.pub
#openssl req -new -days 365 -x509 -key /usr/local/ircd/etc/rsa.key -out /usr/local/ircd/etc/cert.pem
/usr/local/ircd/etc/cert.pem
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN
State or Province Name (full name) [Some-State]:MIS
Locality Name (eg, city) []:BeJing
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Jian
Organizational Unit Name (eg, section) []:irc.test.com
Common Name (eg, YOUR name) []:irc.test.com
Email Address []:jian@test.com
#chown -R ircadmin.ircadmin /usr/local/ircd/
#44行修改如下
serverinfo {
name = "ircd"; #你服务器名称
sid = "1ST"; #必须按提示说明设置3个安符,其中第一个必须是数字1-9,后两个必须是字母组合,否则ircd服务不能正常启动。
network_name = "MyNet"; #网络信息
network_desc = "This is My Network"; #网络信息描述
max_clients = 512;
};
#177行修改为如下:
listen {
flags = ssl; #设置为ssl加密
port = 7000; #服务端口
};
#282行可修改为如下:
auth {
user = "*@*"; #用户@主机允许连接
password = "myirc"; #设置了话任何用户登陆irc服务器都需要提前输入此密码,也可以不设置,可为加密和非加密模式
encrypted = no; #登陆密码是否起用加密模式
spoof = "I.still.hate.packets"; #用语隐藏用户真实IP地址可以起用作为伪装地址
class = "opers"; #默认即可
flags = need_password, spoof_notice, exceed_limit, kline_exempt,
gline_exempt, resv_exempt, no_tilde, can_flood, can_idle;
}; #默认即可
#353行可修改为
operator {
name = "god"; #管理OP(关键)
user = "*god@*"; #允许任何连接上来带god的名称帐号可切换成管理OP
# user = "*@127.0.0.1"; #只允许本地连接的管理者
password = "woshiadmin"; #管理OP的非加密密码
encrypted = NO; #管理密码是否加密
class = "opers"; #以下默认即可
flags = global_kill, remote, kline, unkline, xline,
die, rehash, nick_changes, admin, operwall;
};
#1133行必须修改
/* REMOVE ME. The following line checks you've been reading. */
havent_read_conf = 1; #必须注销掉此行。否则不让你运行
su - ircadmin
$/usr/local/ircd/bin/ircd
ircd: version hybrid-ru-7.2.3
ircd: pid 1513
ircd: running in background mode from /usr/local/ircd
原帖由 yffl1987 于 2008-8-28 09:34 发表
我的目录是/usr/include 所以我没有建你上述的symbolic links
而直接 ./configure --enable-openssl
然后make 出问题了 :
In file included from /usr/include/sys/stat.h:105,
from . ...
原帖由 剑次狼 于 2008-8-28 13:38 发表
我的汗。我说的是
EFnet server ............ no (use example.conf)
Halfops support ......... no
这两个自检条件不满足。
不是安装包!
你先检查下你的基础包安装没?你的操作系统是什么?
gcc
libc6 ...
3.42 MB, 下载次数: 44
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |