按照教程走了一遍能运行起来。但一旦关闭过一次服务器,再开启时就会卡在登录后验证密码那一步。此时GM工具也连不上mysql。SSH里[root@Tlbb tlbb]# mysql显示ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)。不熟悉mysql,实在没办法搞定这个问题。
Vmware workstation 17.5.0, CentOS-7-x86_64-Everything-1810.iso建的2核心8G内存30G硬盘的虚拟机。安装aaPanel,用aaPanel安装成功时给的随机用户名密码通过内网网页登录,在里面选mysql 5.1.73版本安装,在databases-mysql设置root password为默认的tlbb456123;在aaPanel里安装Linux tools 1.7,在这个app的Setting里add了swap超过4096MB。也开放了那4个端口。所有SSH过去的操作都是root进行的。首次安装完成是可以玩的。但停止后关机再开就不行了。我刚试了一下aaPanel里的phpMyAdmin,显示无法登录mysql服务器,mysqli::real_connect(): (HY000/2002): No such file or directory。
你好。我是在家里主机A的vmware workstation部署的服务端,路由器上设置虚拟机固定IP,在主机B上登录客户端或使用GM工具。我试过很多次,只要关闭虚拟机再开启,就会因连不上mysql卡在正在验证密码那里。此时用aapanel卸载mysql再重装,重设密码,重新解压tlbb.zip就又好使了。只是之前的进度就没了。我发现安装成功后运行开服关服命令,不管几次都是如下输出:
#1st run
[root@Tlbb tlbb]# ./run.sh
start ShareMemory ......
ShareMemory started completely !!!!!!
start World ......
World started completely !!!!!!
start Login ......
Login started completely !!!!!!
start Server ......
Server started completely !!!!!!
Billing started completely !!!!!!
[root@Tlbb tlbb]# ./stop.sh
stopping Server ......
Server stoped completely !!!!!!
Login is stopping ......
Login stoped completely !!!!!!
World is stopping ......
World stoped completely !!!!!!
ShareMemroy is saving data ......
ShareMemory stoped completely !!!!!!
但关闭虚拟机再开启,开服关服命令输出如下
#Shutdown 2nd run
[root@Tlbb tlbb]# ./run.sh
start ShareMemory ......
ShareMemory started completely !!!!!!
start World ......
./run.sh: line 54: 19774 Segmentation fault (core dumped) ./World > /dev/null 2>&1
World started completely !!!!!!
start Login ......
Login started completely !!!!!!
start Server ......
./run.sh: line 54: 19865 Segmentation fault (core dumped) ./Server > /dev/null 2>&1
Server started completely !!!!!!
Billing started completely !!!!!!
[root@Tlbb tlbb]# ./stop.sh
stopping Server ......
Server stoped completely !!!!!!
Login is stopping ......
Login stoped completely !!!!!!
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
World is stopping ......
World stoped completely !!!!!!
ShareMemroy is saving data ......
ShareMemory stoped completely !!!!!!
似乎是因为mysql的sock文件丢失导致的
[root@Tlbb tlbb]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
但我试了网上的各种方法,都没能解决这个问题,只能重装mysql。
现在也能玩,只要挂起虚拟机而不是关闭虚拟机就行了。
所以请问大佬能看出来是哪里出错了吗?要是能正常解决最好。或者有没有方法,备份某个文件,重新安装后拷回去,能让服务器进度不丢失的呢?
在运行tl.sh时有个错误,不知道跟这个有关系没?
#./tl.sh
myodbc3i: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
warning: %post(mysql-connector-odbc-3.51.25-0.i386) scriptlet failed, exit status 127
出问题后,如果不卸载重装mysql,直接重新解压和tl.sh,会有mysql相关的报错,忘记保存输出了,大概也是无法登录mysql的问题。
另外,GM工具有没有更详细的说明什么的?发宝石有时看不到,有时在道具包有时在材料包,好像没法直接发到仓库。十分感谢!