前面的文章我看过了,改了也还是不行
我是在集群上安装的,在其中的一个服务器上安装的smthbbs1。2
我的安装目录是\smthbbs\bbs
源码目录是\smthbbs\smthbbs-1.2
1 查找bbs uid gid
[root@frontend-0 smthbbs]# id bbs
uid=9999(bbs) gid=999(bbs) groups=999(bbs)
2 用vi修改\smthbbs\smthbbs-1.2\site\下devel.h的BBSUID BBSGID分别为9999 999
#ifndef __SYSNAME_H_
#define __SYSNAME_H_
#define BBSUID 9999
#define BBSGID 999
/*#define USE_TMPFS 1*/
#define TMPFSROOT "cache"
#define SMTH 1 /*作为SMTH的测试站嘛 */
3 /smthbbs/smthbbs-1.2 下configure
我没有安装php ssh,如下
./configure --prefix=/smthbbs/bbs --enable-site=devel --without-mysql --with
out-libesmtp
4 make
5 make install
6 make install-home
7 chown -R bbs:bbs \smthbbs\bbs
然后用bbs登陆
/smthbbs/bbs/bin
1 运行 ./miscd daemon
Error! shmat 2 error! key=e74,: Permission denied
(已经chown过了,无奈用root来./miscd daemon了)
2 用bbs运行./bbslogd 没问题
3 用bbs运行./bbsd -p 10023 没问题
然后telnet localhost 10023
[root@frontend-0 site]# telnet localhost 10023
Trying 127.0.0.1...
Connected to frontend-0.public (127.0.0.1).
Escape character is '^]'.
Error! shmat 2 error! key = x.
Connection closed by foreign host.
检查一下进程如下
[root@frontend-0 site]# ps -f -C miscd
UID PID PPID C STIME TTY TIME CMD
[root@frontend-0 site]# ps -f -C bbslogd
UID PID PPID C STIME TTY TIME CMD
bbs 13898 1 0 11:55 ? 00:00:00 ./bbslogd
[root@frontend-0 site]# ps -f -C bbsd
UID PID PPID C STIME TTY TIME CMD
bbs 13880 1 0 11:54 ? 00:00:00 ./bbsd -p 10023
大家帮我看看吧
谢谢!
--
修改:fogsnow FROM 159.226.228.*
FROM 159.226.228.*