配置
conf/examples/example.conf
是一个配置模板,默认系统会读取 conf/unrealircd.conf
中的配置
于是拷贝过来,直接使用
代码语言:javascript复制[root@h104 unrealircd]# cp conf/examples/example.conf conf/unrealircd.conf
[root@h104 unrealircd]#
[root@h104 unrealircd]# bin/unrealircd
WARNING: You are running UnrealIRCd as root and it is not
configured to drop priviliges. This is VERY dangerous,
as any compromise of your UnrealIRCd is the same as
giving a cracker root SSH access to your box.
You should either start UnrealIRCd under a different
account than root, or set IRC_USER in include/config.h
to a nonprivileged username and recompile.
_ _ _ ___________ _____ _
| | | | | |_ _| ___ / __ | |
| | | |_ __ _ __ ___ __ _| | | | | |_/ /| / / __| |
| | | | '_ | '__/ _ / _` | | | | | / | | / _` |
| |_| | | | | | | __/ (_| | |_| |_| | | __/ (_| |
___/|_| |_|_| ___|__,_|_|___/_| _| ____/__,_|
v4.0.2
using TRE 0.8.0 (BSD)
using OpenSSL 1.0.1e-fips 11 Feb 2013
Loading IRCd configuration..
config error: /root/unrealircd/conf/unrealircd.conf:144: please change the the name and password of the default 'bobsmith' oper block
config error: /root/unrealircd/conf/unrealircd.conf:378: set::cloak-keys: (key 2) Keys should be mixed a-zA-Z0-9, like "a2JO6fh3Q6w4oN3s7"
config error: /root/unrealircd/conf/unrealircd.conf:379: set::cloak-keys: (key 3) Keys should be mixed a-zA-Z0-9, like "a2JO6fh3Q6w4oN3s7"
config error: /root/unrealircd/conf/unrealircd.conf:376: set::cloak-keys: All your 3 keys should be RANDOM, they should not be equal
config error: /root/unrealircd/conf/unrealircd.conf:386: set::kline-address must be an e-mail or an URL
config error: 5 errors encountered
config error: IRCd configuration failed to pass testing
[root@h104 unrealircd]#
警告
代码语言:javascript复制WARNING: You are running UnrealIRCd as root and it is not
configured to drop priviliges. This is VERY dangerous,
as any compromise of your UnrealIRCd is the same as
giving a cracker root SSH access to your box.
You should either start UnrealIRCd under a different
account than root, or set IRC_USER in include/config.h
to a nonprivileged username and recompile.
我们是使用的root,如果使用的普通用户,就不会有这样的警告,如:
代码语言:javascript复制[root@h104 unrealircd]# su - irc
Last login: Tue Mar 22 00:17:00 CST 2016 on pts/0
[irc@h104 ~]$ /usr/local/unrealircd/bin/unrealircd
_ _ _ ___________ _____ _
| | | | | |_ _| ___ / __ | |
| | | |_ __ _ __ ___ __ _| | | | | |_/ /| / / __| |
| | | | '_ | '__/ _ / _` | | | | | / | | / _` |
| |_| | | | | | | __/ (_| | |_| |_| | | __/ (_| |
___/|_| |_|_| ___|__,_|_|___/_| _| ____/__,_|
v4.0.2
using TRE 0.8.0 (BSD)
using OpenSSL 1.0.1e-fips 11 Feb 2013
Loading IRCd configuration..
Configuration loaded without any problems.
Loading tunefile..
Initializing SSL..
Dynamic configuration initialized.. booting IRCd.
UnrealIRCd is now listening on the following addresses/ports:
IPv4: *:6900(SSL), *:6697(SSL), *:6667
IPv6: *:6900(SSL), *:6697(SSL), *:6667
UnrealIRCd started.
[irc@h104 ~]$