VPS侦探论坛

 找回密码
 注册
查看: 4065|回复: 9

1.3 安装出错

[复制链接]
发表于 2015-11-25 13:12:57 | 显示全部楼层 |阅读模式

  1. Starting LAMP...
  2. start apache... Syntax error on line 161 of /usr/local/apache/conf/httpd.conf:
  3. DocumentRoot takes one argument, Root directory of the document tree
  4. failed
  5. Starting MySQL. ERROR! The server quit without updating PID file (/xx.com.pid).
复制代码
linode的 centos6.5  安装lamp报上面的错,试过2次都报错,装1.2没问题。安装日志传不了啊
报防火墙问题
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-11-25 13:14:37 | 显示全部楼层


上传安装日志报以下信息:网站防火墙
您的请求带有不合法参数,已被网站管理员设置拦截!
可能原因:您提交的内容包含危险的攻击请求
如何解决:
  • 1)检查提交内容;
  • 2)如网站托管,请联系空间提供商;
  • 3)普通网站访客,请联系网站管理员;
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-11-25 13:15:13 | 显示全部楼层

  1. ============================Install PHPMyAdmin=================================
  2. ============================phpMyAdmin install completed=======================
  3. iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]

  4. Add Startup and Starting LAMP...
  5. Add httpd service at system startup...
  6. start apache... Syntax error on line 161 of /usr/local/apache/conf/httpd.conf:
  7. DocumentRoot takes one argument, Root directory of the document tree
  8. failed
  9. Add mysql service at system startup...
  10. Starting MySQL. ERROR! The server quit without updating PID file (/xx.com.pid).
  11. Apache: OK
  12. MySQL: OK
  13. PHP: OK
  14. +------------------------------------------------------------------------+
  15. |          LNMP V1.3 for CentOS Linux Server, Written by Licess          |
  16. +------------------------------------------------------------------------+
  17. |         For more information please visit http://www.lnmp.org          |
  18. +------------------------------------------------------------------------+
  19. |    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
  20. +------------------------------------------------------------------------+
  21. |  phpMyAdmin: http://IP/phpmyadmin/                                     |
  22. |  phpinfo: http://IP/phpinfo.php                                        |
  23. |  Prober:  http://IP/p.php                                              |
  24. +------------------------------------------------------------------------+
  25. |  Add VirtualHost: lnmp vhost add                                       |
  26. +------------------------------------------------------------------------+
  27. |  Default directory:                               |
  28. +------------------------------------------------------------------------+
  29. |  MySQL/MariaDB root password: aWKGgx5db8rB6Hrs                          |
  30. +------------------------------------------------------------------------+
  31. +-------------------------------------------+
  32. |    Manager for LNMP, Written by Licess    |
  33. +-------------------------------------------+
  34. |              http://lnmp.org              |
  35. +-------------------------------------------+
  36. Apache is stopped.
  37. ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
  38. Active Internet connections (only servers)
  39. Proto Recv-Q Send-Q Local Address               Foreign Address             State      
  40. tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      
  41. tcp        0      0 :::22                       :::*                        LISTEN      
  42. Install lnmp V1.3 completed! enjoy it.
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-11-25 13:20:46 | 显示全部楼层



mysql的错误日志:
  1. 151124 23:23:09 mysqld_safe Starting mysqld daemon with databases from
  2. 151124 23:23:09 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 24448 ...
  3. /usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
  4. 151124 23:23:09 [ERROR] Aborting

  5. 151124 23:23:09 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  6. 151124 23:23:09 mysqld_safe mysqld from pid file /xx.com.pid ended
  7. 151124 23:23:10 mysqld_safe Starting mysqld daemon with databases from
  8. 151124 23:23:10 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 24991 ...
  9. /usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
  10. 151124 23:23:10 [ERROR] Aborting

  11. 151124 23:23:10 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  12. 151124 23:23:10 mysqld_safe mysqld from pid file /xx.com.pid ended
  13. 151124 23:23:11 mysqld_safe Starting mysqld daemon with databases from
  14. 151124 23:23:11 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 25536 ...
  15. /usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
  16. 151124 23:23:11 [ERROR] Aborting

  17. 151124 23:23:11 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  18. 151124 23:23:11 mysqld_safe mysqld from pid file /xx.com.pid ended
  19. 151124 23:37:25 mysqld_safe Starting mysqld daemon with databases from
  20. 151124 23:37:25 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 14910 ...
  21. /usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
  22. 151124 23:37:25 [ERROR] Aborting

  23. 151124 23:37:25 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  24. 151124 23:37:25 mysqld_safe mysqld from pid file /xx.com.pid ended
  25. 151125 07:14:55 mysqld_safe Starting mysqld daemon with databases from
  26. 151125  7:14:55 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 15522 ...
  27. /usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
  28. 151125  7:14:55 [ERROR] Aborting

  29. 151125  7:14:55 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  30. 151125 07:14:55 mysqld_safe mysqld from pid file /xx.com.pid ended
  31. 151125 12:51:23 mysqld_safe Starting mysqld daemon with databases from
  32. 151125 12:51:23 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 16085 ...
  33. /usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
  34. 151125 12:51:23 [ERROR] Aborting

  35. 151125 12:51:23 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  36. 151125 12:51:23 mysqld_safe mysqld from pid file /xx.com.pid ended
  37. 151125 12:55:12 mysqld_safe Starting mysqld daemon with databases from
  38. 151125 12:55:12 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 16601 ...
  39. 151125 12:55:12 [Note] Plugin 'FEDERATED' is disabled.
  40. /usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
  41. 151125 12:55:12 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
  42. 151125 12:55:12 [ERROR] syntax error in innodb_log_group_home_dir, or a wrong number of mirrored log groups
  43. 151125 12:55:12 [ERROR] Plugin 'InnoDB' init function returned error.
  44. 151125 12:55:12 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  45. 151125 12:55:12 [ERROR] Unknown/unsupported storage engine: InnoDB
  46. 151125 12:55:12 [ERROR] Aborting

  47. 151125 12:55:12 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  48. 151125 12:55:12 mysqld_safe mysqld from pid file /xx.com.pid ended
  49. 151125 12:58:42 mysqld_safe Starting mysqld daemon with databases from
  50. 151125 12:58:42 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 17116 ...
  51. 151125 12:58:42 [Note] Plugin 'FEDERATED' is disabled.
  52. /usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
  53. 151125 12:58:42 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
  54. 151125 12:58:42 [ERROR] syntax error in innodb_log_group_home_dir, or a wrong number of mirrored log groups
  55. 151125 12:58:42 [ERROR] Plugin 'InnoDB' init function returned error.
  56. 151125 12:58:42 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  57. 151125 12:58:42 [ERROR] Unknown/unsupported storage engine: InnoDB
  58. 151125 12:58:42 [ERROR] Aborting

  59. 151125 12:58:42 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  60. 151125 12:58:42 mysqld_safe mysqld from pid file /xx.com.pid ended
  61. 151125 12:59:22 mysqld_safe Starting mysqld daemon with databases from
  62. 151125 12:59:22 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 17631 ...
  63. 151125 12:59:22 [Note] Plugin 'FEDERATED' is disabled.
  64. /usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
  65. 151125 12:59:22 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
  66. 151125 12:59:22 [ERROR] syntax error in innodb_log_group_home_dir, or a wrong number of mirrored log groups
  67. 151125 12:59:22 [ERROR] Plugin 'InnoDB' init function returned error.
  68. 151125 12:59:22 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  69. 151125 12:59:22 [ERROR] Unknown/unsupported storage engine: InnoDB
  70. 151125 12:59:22 [ERROR] Aborting

  71. 151125 12:59:22 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  72. 151125 12:59:22 mysqld_safe mysqld from pid file /xx.com.pid ended
  73. 151125 12:59:57 mysqld_safe Starting mysqld daemon with databases from
  74. 151125 12:59:57 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 18146 ...
  75. 151125 12:59:57 [Note] Plugin 'FEDERATED' is disabled.
  76. /usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
  77. 151125 12:59:57 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
  78. 151125 12:59:57 [ERROR] syntax error in innodb_log_group_home_dir, or a wrong number of mirrored log groups
  79. 151125 12:59:57 [ERROR] Plugin 'InnoDB' init function returned error.
  80. 151125 12:59:57 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  81. 151125 12:59:57 [ERROR] Unknown/unsupported storage engine: InnoDB
  82. 151125 12:59:57 [ERROR] Aborting

  83. 151125 12:59:57 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  84. 151125 12:59:57 mysqld_safe mysqld from pid file /xx.com.pid ended
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-11-25 13:29:22 | 显示全部楼层

再问一下军哥,1.3自动优化,是根据硬件来优化?是否就是主要优化mysql配置?

军哥运维代购:http://shop63846532.taobao.com/

发表于 2015-11-25 14:20:47 | 显示全部楼层

日志要完整的,需要压缩后上传
 楼主| 发表于 2015-11-25 15:42:48 | 显示全部楼层

军哥,请看附件。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-11-25 19:38:20 | 显示全部楼层

回复 7# 的帖子


Installing MySQL system tables...
151124 23:23:08 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.46-log) starting as process 23930 ...
/usr/local/mysql/bin/mysqld: File './mysql-bin.index' not found (Errcode: 13)
151124 23:23:08 [ERROR] Aborting

你ls -la 你的数据库目录看看,应该是权限有问题,你数据库目录设到哪了?

start apache... Syntax error on line 161 of /usr/local/apache/conf/httpd.conf:
DocumentRoot takes one argument, Root directory of the document tree
failed

你修改过默认网站目录吧?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-11-25 19:50:06 | 显示全部楼层

默认安装,没改目录
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-12-9 15:57:26 | 显示全部楼层



军哥,在腾讯云上安装1.3的lamp 仍然是报这错

[ 本帖最后由 monface 于 2015-12-9 16:00 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-20 02:52 , Processed in 0.029990 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表