全球主机交流论坛

标题: 执行了这个脚本 我悲剧了 求救。。 [打印本页]

作者: elves766    时间: 2012-1-1 15:44
标题: 执行了这个脚本 我悲剧了 求救。。
本帖最后由 elves766 于 2012-1-1 15:44 编辑
如何关闭MySQL的日志功能:

删除日志:


执行:/usr/local/mysql/bin/mysql -u root -p

输入密码登录后再执行:reset master;

修改/etc/my.cnf 文件,找到

log-bin=mysql-bin
binlog_format=mixed

再这两行前面加上#,将其注释掉,再执行/etc/init.d/mysql restart即可。


执行了上面的代码 目前网站出现了这样的情况。

vps可以ping通 但是打不开网站 提示 HTTP错误500 有时候提示数据库不对

SSH 无法进入 麻爪了。。
作者: Kvm    时间: 2012-1-1 15:44
不会吧
重启vps 再看看
作者: 哈P哥    时间: 2012-1-1 15:45
发TK找客服帮忙啊
作者: elves766    时间: 2012-1-1 15:45
Kvm 发表于 2012-1-1 15:44
不会吧
重启vps 再看看

控制面板重启VPS 无效。
作者: Kokgog    时间: 2012-1-1 15:46
关日志不可能.............倒是你怎么删除日志的.........如果直接rm.....那倒是有可能的......
作者: elves766    时间: 2012-1-1 15:48
就直接执行了上面的代码 然后出现很多行英文 我没看是什么 过了一会就悲剧了
作者: elves766    时间: 2012-1-1 15:51
现在的情况是 提示数据库错误 然后SSH连接不上 HTTP错误500
作者: elves766    时间: 2012-1-1 15:58
Hi,

I'm sorry to hear of the issues you're experiencing. Your Linode is currently booted and it is responding to ping, but after reviewing your console it appears that your SSH server failed to start for the following reasons:

----- SNIP -----
Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.
[FAILED]
----- SNIP -----

It appears that some other services have also failed to start:

----- SNIP -----
Starting MySQL. ERROR! Manager of pid-file quit without updating file.

Starting sm-client: can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
----- SNIP -----

You can view these messages for yourself by connecting to your Linode via the Lish console:

http://library.linode.com/troubleshooting/using-lish-the-linode-shell

It appears as though some of the directories in your "/var" folder may have the wrong permissions set for it.

I'd suggest connecting to your Linode via Lish to investigate this issue further.

I hope this helps. Let us know if we can assist you further.

-Danny

客服是这么说的
作者: 有个就好    时间: 2012-1-1 16:41
不搞清楚再折腾,网上很多东西都变味了
作者: cfc_boy    时间: 2012-1-1 16:49
这个脚本跟SSH有关系吗?




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4