- 主题:kbs_bbs 安装成功后(?) telnet时的问题!
【 在 JulyClyde (七月) 的大作中提到: 】
: 你是不是重新co源代码了?
没有重新co源代码阿?
刚才又登录一遍变成:
root@1[bin]# telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.
bin目录的权限为:
-rwxr-xr-x 1 root bbs 14058 2005-08-06 17:58 alluserlog
-rwxr-xr-x 1 root bbs 16949 2005-08-06 17:57 autoclear
-rwxr-xr-x 1 root bbs 15463 2005-08-06 17:57 autoundeny
-rwxr-xr-x 1 root bbs 1030246 2005-08-06 17:57 bbsd
-rwxr-xr-x 1 root bbs 277305 2005-08-06 17:57 bbslogd
-rwxr-xr-x 1 root bbs 11732 2005-08-06 17:57 bbssmsd
-rwxr-xr-x 1 root bbs 22150 2005-08-06 17:57 Bhtml
-rwxr-xr-x 1 root bbs 15054 2005-08-06 17:58 bonlinelog
-rwxr-xr-x 1 root bbs 15110 2005-08-06 17:58 calc_effsize
-rwxr-xr-x 1 root bbs 15364 2005-08-06 17:58 change_tmpl
-rwxr-xr-x 1 root bbs 305804 2005-08-06 17:57 chatd
-rwxr-xr-x 1 root bbs 12998 2005-08-06 17:58 ch_brdflag
-rwxr-xr-x 1 root bbs 13472 2005-08-06 17:57 cnv_bh
-rwxr-xr-x 1 root bbs 14903 2005-08-06 17:57 cnv_bh2
-rwxr-xr-x 1 root bbs 20362 2005-08-06 17:58 cnv_brddir
-rwxr-xr-x 1 root bbs 12984 2005-08-06 17:57 cnv_brdflag
-rwxr-xr-x 1 root bbs 13267 2005-08-06 17:58 cnv_passwd
-rwxr-xr-x 1 root bbs 14346 2005-08-06 17:58 cnv_register
-rwxr-xr-x 1 root bbs 15497 2005-08-06 17:58 convpass356
-rwxr-xr-x 1 root bbs 15651 2005-08-06 17:58 dayuserlog
-rwxr-xr-x 1 root bbs 13438 2005-08-06 17:58 find_lost_user
-rwxr-xr-x 1 root bbs 20180 2005-08-06 17:57 find_rm_lost
-rwxr-xr-x 1 root bbs 20042 2005-08-06 17:57 fixdir
-rwxr-xr-x 1 root bbs 13624 2005-08-06 17:58 genbplot
-rwxr-xr-x 1 root bbs 16056 2005-08-06 17:58 genhot
-rwxr-xr-x 1 root bbs 14994 2005-08-06 17:58 gennewboard
-rwxr-xr-x 1 root bbs 17027 2005-08-06 17:57 gen_title
-rwxr-xr-x 1 root bbs 21217 2005-08-06 17:57 idx0Ann
-rwxr-xr-x 1 root bbs 17712 2005-08-06 17:57 lazybm
-rwxr-xr-x 1 root bbs 14841 2005-08-06 17:58 listMODE
-rwxr-xr-x 1 root bbs 13158 2005-08-06 17:57 listonline
-rwxr-xr-x 1 root bbs 15032 2005-08-06 17:57 login
-rwxr-xr-x 1 root bbs 21585 2005-08-06 17:58 mail2bbs
-rwxr-xr-x 1 root bbs 12663 2005-08-06 17:58 mailall
-rwxr-xr-x 1 root bbs 15345 2005-08-06 17:58 mailbirth
-rwxr-xr-x 1 root bbs 280420 2005-08-06 17:57 miscd
-rwxr-xr-x 1 root bbs 296021 2005-08-06 17:57 newpop3d
-rwxr-xr-x 1 root bbs 12406 2005-08-06 17:58 newpoststat
-rwxr-xr-x 1 root bbs 11801 2005-08-06 17:58 nsupdated
-rwxr-xr-x 1 root bbs 15162 2005-08-06 17:58 outdaybm
-rwxr-xr-x 1 root bbs 17188 2005-08-06 17:58 post_brdlog
-rwxr-xr-x 1 root bbs 14839 2005-08-06 17:58 post_buse
-rwxr-xr-x 1 root bbs 28812 2005-08-06 17:57 poststat
-rwxr-xr-x 1 root bbs 32958 2005-08-06 17:58 qmail2bbs
-rwxr-xr-x 1 root bbs 13818 2005-08-06 17:58 recalc_signum
-rwxr-xr-x 1 root bbs 13737 2005-08-06 17:57 refriend
-rwxr-xr-x 1 root bbs 13550 2005-08-06 17:57 resetMailTotal
-rwxr-xr-x 1 root bbs 12725 2005-08-06 17:58 scanIP
-rwxr-xr-x 1 root bbs 12838 2005-08-06 17:58 scanMODE
-rwxr-xr-x 1 root bbs 12446 2005-08-06 17:58 settoptitle
-rwxr-xr-x 1 root bbs 12870 2005-08-06 17:57 showBM
-rwxr-xr-x 1 root bbs 15451 2005-08-06 17:58 showipdeny
-rwxr-xr-x 1 root bbs 27962 2005-08-06 17:58 smth_usage
-rwxr-xr-x 1 root bbs 19869 2005-08-06 17:57 statBM
-rwxr-xr-x 1 root bbs 16039 2005-08-06 17:57 statguy
-rwxr-xr-x 1 root bbs 19883 2005-08-06 17:57 static
-rwxr-xr-x 1 root bbs 21763 2005-08-06 17:58 statkiller
-rwxr-xr-x 1 root bbs 19916 2005-08-06 17:58 strip_fh
-rwxr-xr-x 1 root bbs 15663 2005-08-06 17:58 sync_mailsize
-rwxr-xr-x 1 root bbs 15443 2005-08-06 17:58 uonlinelog
-rwxr-xr-x 1 root bbs 24769 2005-08-06 17:57 usage
-rwxr-xr-x 1 root bbs 13750 2005-08-06 17:57 Xclean
-rwxr-xr-x 1 root bbs 32770 2005-08-06 17:57 Xhtml
--
修改:totallytt FROM 60.164.80.*
FROM 60.164.80.*
忘记了,把 default.h 一块贴出来
【 在 totallytt (猪猪傲) 的大作中提到: 】
: passwd的内容:
: root:x:0:0:root:/root:/bin/bash
: daemon:x:1:1:daemon:/usr/sbin:/bin/sh
: ...................
--
FROM 202.118.0.*
用root运行:
#BEGIN
#这段是让BBS停止
killall newpop3d
killall bbsd
killall sshbbsd
killall bbslogd
killall miscd
/sbin/service httpd stop
for i in `ipcs|awk '{print $2}'`;do ipcrm shm $i;done
ipcs -m | awk '$0~/bbs/ {system(sprintf("ipcrm shm %s",$2));}'
#这段是让BBS启动
chown -R bbs:bbs /home/bbs/bin
/home/bbs/bin/miscd daemon
/home/bbs/bin/bbslogd
/home/bbs/bin/bbsd -p 23
/home/bbs/bin/sshbbsd
/home/bbs/bin/newpop3d
/sbin/service httpd start
#END
看看结果
【 在 totallytt (猪猪傲) 的大作中提到: 】
: default.h的内容为:
: /**
: 缺省的配置文件
: ...................
--
FROM 202.118.0.*
你这个过程看来没有清共享内存,因为后面ipcs列出来还是501
【 在 totallytt (猪猪傲) 的大作中提到: 】
: 昨天改好了的site.h,今天进去发现site.h里的uid和gid又变成了501~~~
: 我关掉bbs后
: 首先
: ...................
--
FROM 128.12.181.*
你确定你src/site.h link 到fb2k-v2.h?确定configure参数是site=fb2k-v2?
如果确定,按这个步骤操作:
kbs目录,make,然后make install
然后重启动电脑
(如果你不想重启并有足够自信,关掉所有的bbs程序并且清共享内存即可)
然后该干嘛干嘛...
【 在 totallytt (猪猪傲) 的大作中提到: 】
: passwd的内容:
: root:x:0:0:root:/root:/bin/bash
: daemon:x:1:1:daemon:/usr/sbin:/bin/sh
: ...................
--
FROM 128.12.181.*
【 在 atppp (Big Mouse) 的大作中提到: 】
: 你确定你src/site.h link 到fb2k-v2.h?确定configure参数是site=fb2k-v2?
: 如果确定,按这个步骤操作:
: kbs目录,make,然后make install
: ...................
这个不太懂?
src是/home/kbs_bbs下的吗?
我只是改了home/bbs下的site.h,后来又改
了home/kbs_bbs/下的site.h,并且重新make过~
确定confgiure的参数是fb2k-v2
--
FROM 61.178.130.*
源代码目录下的src/site.h
【 在 totallytt (猪猪傲) 的大作中提到: 】
: 这个不太懂?
: src是/home/kbs_bbs下的吗?
: 我只是改了home/bbs下的site.h,后来又改
: ...................
--
FROM 128.12.181.*
又make了一遍,似乎连上了,却又忽然断了掉了?
这是为什么阿?
kde乱码,不好意思阿
\uffff\uffff\u04ed\uffff\uffff\uffff\uffff \uffffsmthbbs\uffff\uffff\uffff\uffff\u057e\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff0[\uffff\uffff\uffff\uffff: 0](0 WWW GUEST)
\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff `guest', \u05e2\uffff\uffff\uffff\uffff\uffff\uffff\uffffnew',add '.' after your ID for BIG5
\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff: Connection closed by foreign host.
之后又用qterm就连不上了,telnet也是:
root@0[bin]# telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.
呵呵,谢谢各位的热心帮助
大功告成以后我会为水木整理一份文档出来的
作为对水木的回报,让kbs代码发杨光大
^——^
--
修改:totallytt FROM 61.178.130.*
FROM 61.178.130.*
【 在 totallytt (猪猪傲) 的大作中提到: 】
: 又make了一遍,似乎连上了,却又忽然断了掉了?
: 这是为什么阿?
: kde乱码,不好意思阿
: ...................
查过ipcs,之前之后都有bbs用户再运行,没有问题
/home/bbs权限也已经配过N便了,应该不会有问题?
--
FROM 61.178.130.*
tail error.log
tail usies
tail user.log
【 在 totallytt (猪猪傲) 的大作中提到: 】
: 查过ipcs,之前之后都有bbs用户再运行,没有问题
: /home/bbs权限也已经配过N便了,应该不会有问题?
--
FROM 128.12.181.*