容器技术交流

 找回密码
 立即注册
查看: 4808|回复: 3

求助Can't connect to ,,, '/tmp/mysql.sock' (2)

[复制链接]
发表于 2011-9-20 01:55:09 | 显示全部楼层 |阅读模式
本帖最后由 kissyijun 于 2011-9-20 02:00 编辑

几天没看网站。今天突然访问不了,进后台一看出错了。用了一段时间了都没出错。
  1. 系统发生错误
复制代码

您可以选择 [ 重试 ] [ 返回 ] 或者 [ 回到首页 ][ 错误信息 ]
  1. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
复制代码

运行启动所有组件出错:求高手分析下。我的QQ258481432.谢谢
  1. [root@enter Poko]# lu-start
  2. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  3. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  4. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  5. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  6. /usr/local/mysql/bin/mysqld_safe: line 137:  3469 Killed                  nohup /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/home/mysql_data --user=lu_mysql --log-error=/home/mysql_data/enter.err --pid-file=/home/mysql_data/enter.pid < /dev/null >> /home/mysql_data/enter.err 2>&1
  7. 110919 13:44:03 mysqld_safe mysqld from pid file /home/mysql_data/enter.pid ended
  8. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  9. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  10. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  11. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  12. /usr/local/LuNamp/cmd/mysql-start: line 5: [: !=: unary operator expected
  13. /usr/local/mysql/bin/mysqld_safe: line 216:  4783 Done                    echo '/usr/local/mysql/share/mysql'
  14.       4784 Segmentation fault      | grep '^/usr/local/mysql' > /dev/null
  15. /usr/local/LuNamp/cmd/mysql-start: line 15: [: !=: unary operator expected
  16. /usr/local/LuNamp/cmd/mysql-start: line 31: [: !=: unary operator expected

  17. MySQL 启动失败!
  18. MySQL was started failed.
  19. /usr/local/mysql/bin/mysqld_safe: line 216:  4827 Done                    echo '/usr/local/mysql/share/mysql'
  20.       4828 Segmentation fault      | grep '^/usr/local/mysql' > /dev/null
  21. 110919 13:44:52 mysqld_safe Logging to '/home/mysql_data/enter.err'.
  22. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  23. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  24. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  25. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  26. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  27. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  28. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  29. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  30. /usr/local/LuNamp/cmd/apache_LuManager-start: line 5: [: !=: unary operator expected
  31. 110919 13:44:52 mysqld_safe Starting mysqld daemon with databases from /home/mysql_data
  32. /usr/local/LuNamp/cmd/apache_LuManager-start: line 12: [: !=: unary operator expected

  33. Apache_LuManager 启动失败!
  34. Apache_LuManager was started failed.
  35. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  36. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  37. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  38. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  39. /usr/local/LuNamp/cmd/pureftpd-start: line 5: [: !=: unary operator expected
  40. Running: /usr/local/pureftpd/sbin/pure-ftpd -A -c50 -B -C5 -D -E -fftp -H -I15 -lmysql:/usr/local/pureftpd/pureftpd-mysql.conf -lunix -L50000:12 -m4 -p20000:30000 -s -U002:002 -u100 -Ostats:/var/log/pureftpd.log -j -g/var/run/pure-ftpd.pid -k99 -Z

  41. /usr/local/LuNamp/cmd/pureftpd-start: line 13: [: !=: unary operator expected
  42. Running: /usr/local/pureftpd/sbin/pure-ftpd -A -c50 -B -C5 -D -E -fftp -H -I15 -lmysql:/usr/local/pureftpd/pureftpd-mysql.conf -lunix -L50000:12 -m4 -p20000:30000 -s -U002:002 -u100 -Ostats:/var/log/pureftpd.log -j -g/var/run/pure-ftpd.pid -k99 -Z

  43. /usr/local/LuNamp/cmd/pureftpd-start: line 20: [: !=: unary operator expected

  44. Pure-ftpd 启动失败!
  45. Pure-ftpd was started failed.
  46. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  47. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  48. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  49. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  50. Starting php_fpm  done
  51. /usr/local/LuNamp/cmd/nginx-start: line 13: [: !=: unary operator expected

  52. Nginx 启动失败!
  53. Nginx was started failed.
  54. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  55. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  56. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  57. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  58. /usr/local/LuNamp/cmd/bind-start: line 11: [: !=: unary operator expected

  59. Bind 启动失败!
  60. Bind was started failed.


  61. Starting test LuNamp status ........................
  62. /usr/local/LuNamp/cmd/lu-start: line 47:  5130 Done                    ps -Af
  63.       5131 Segmentation fault      | egrep "apache_LuManager/bin|nginx|apache/bin|mysqld_safe|pure-ftpd|named"
  64.       5132 Segmentation fault      | grep -vc 'egrep' > '/tmp/lu_ps.txt'
  65. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  66. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  67. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  68. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  69. /usr/local/LuNamp/cmd/apache_LuManager-start: line 5: [: !=: unary operator expected
  70. httpd (pid 4966) already running
  71. /usr/local/LuNamp/cmd/apache_LuManager-start: line 12: [: !=: unary operator expected

  72. Apache_LuManager 启动失败!
  73. Apache_LuManager was started failed.
  74. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  75. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  76. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  77. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  78. Starting php_fpm  done
  79. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  80. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  81. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  82. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  83. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  84. nginx: [emerg] still could not bind()
  85. /usr/local/LuNamp/cmd/nginx-start: line 13: [: !=: unary operator expected

  86. Nginx 启动失败!
  87. Nginx was started failed.
  88. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  89. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  90. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  91. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  92. /usr/local/LuNamp/cmd/bind-start: line 11: [: !=: unary operator expected

  93. Bind 启动失败!
  94. Bind was started failed.
  95. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  96. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  97. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  98. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  99. /usr/local/LuNamp/cmd/mysql-start: line 5: [: !=: unary operator expected
  100. /usr/local/mysql/bin/mysqld_safe: line 216:  5311 Done                    echo '/usr/local/mysql/share/mysql'
  101.       5312 Segmentation fault      | grep '^/usr/local/mysql' > /dev/null
  102. 110919 13:45:13 mysqld_safe Logging to '/home/mysql_data/enter.err'.
  103. /usr/local/mysql/bin/mysqld_safe: line 537:  5362 Segmentation fault      /bin/kill -0 $PID > /dev/null 2> /dev/null
  104. 110919 13:45:14 mysqld_safe Starting mysqld daemon with databases from /home/mysql_data
  105. /usr/local/LuNamp/cmd/mysql-start: line 15: [: !=: unary operator expected
  106. /usr/local/mysql/bin/mysqld_safe: line 216:  5413 Done                    echo '/usr/local/mysql/share/mysql'
  107.       5414 Segmentation fault      | grep '^/usr/local/mysql' > /dev/null
  108. /usr/local/LuNamp/cmd/mysql-start: line 31: [: !=: unary operator expected

  109. MySQL 启动失败!
  110. MySQL was started failed.
  111. /usr/local/LuNamp/cmd/common.inc: line 26: [: =: unary operator expected
  112. /usr/local/LuNamp/cmd/common.inc: line 28: [: too many arguments
  113. /usr/local/LuNamp/cmd/common.inc: line 30: [: =: unary operator expected
  114. /usr/local/LuNamp/cmd/common.inc: line 32: [: =: unary operator expected
  115. 110919 13:45:17 mysqld_safe Logging to '/home/mysql_data/enter.err'.
  116. /usr/local/LuNamp/cmd/pureftpd-start: line 5: [: !=: unary operator expected
  117. Running: /usr/local/pureftpd/sbin/pure-ftpd -A -c50 -B -C5 -D -E -fftp -H -I15 -lmysql:/usr/local/pureftpd/pureftpd-mysql.conf -lunix -L50000:12 -m4 -p20000:30000 -s -U002:002 -u100 -Ostats:/var/log/pureftpd.log -j -g/var/run/pure-ftpd.pid -k99 -Z

  118. 110919 13:45:17 mysqld_safe Starting mysqld daemon with databases from /home/mysql_data
  119. /usr/local/LuNamp/cmd/pureftpd-start: line 13: [: !=: unary operator expected
  120. Running: /usr/local/pureftpd/sbin/pure-ftpd -A -c50 -B -C5 -D -E -fftp -H -I15 -lmysql:/usr/local/pureftpd/pureftpd-mysql.conf -lunix -L50000:12 -m4 -p20000:30000 -s -U002:002 -u100 -Ostats:/var/log/pureftpd.log -j -g/var/run/pure-ftpd.pid -k99 -Z

  121. /usr/local/LuNamp/cmd/pureftpd-start: line 20: [: !=: unary operator expected

  122. Pure-ftpd 启动失败!
  123. Pure-ftpd was started failed.


  124. Thank you for choosing LuNamp and LuManager! [Website support: zijidelu.org]
  125. [root@enter Poko]# 110919 13:45:33 mysqld_safe Logging to '/home/mysql_data/enter.err'.
  126. 110919 13:46:18 mysqld_safe Starting mysqld daemon with databases from /home/mysql_data
复制代码


 楼主| 发表于 2011-9-20 02:00:19 | 显示全部楼层
  1. [root@enter Poko]# ps aux
  2. USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
  3. root         1  0.0  0.2   2172   740 ?        Ss   09:15   0:00 init [3]
  4. root         2  0.0  0.0      0     0 ?        S<   09:15   0:00 [migration/0]
  5. root         3  0.0  0.0      0     0 ?        SN   09:15   0:00 [ksoftirqd/0]
  6. root         4  0.0  0.0      0     0 ?        S<   09:15   0:00 [watchdog/0]
  7. root         5  0.0  0.0      0     0 ?        S<   09:15   0:00 [events/0]
  8. root         6  0.0  0.0      0     0 ?        S<   09:15   0:00 [khelper]
  9. root         7  0.0  0.0      0     0 ?        S<   09:15   0:00 [kthread]
  10. root         9  0.0  0.0      0     0 ?        S<   09:15   0:00 [xenwatch]
  11. root        10  0.0  0.0      0     0 ?        S<   09:15   0:00 [xenbus]
  12. root        16  0.0  0.0      0     0 ?        S<   09:15   0:00 [migration/1]
  13. root        17  0.0  0.0      0     0 ?        SN   09:15   0:00 [ksoftirqd/1]
  14. root        18  0.0  0.0      0     0 ?        S<   09:15   0:00 [watchdog/1]
  15. root        19  0.0  0.0      0     0 ?        S<   09:15   0:00 [events/1]
  16. root        20  0.0  0.0      0     0 ?        S<   09:15   0:00 [migration/2]
  17. root        21  0.0  0.0      0     0 ?        SN   09:15   0:00 [ksoftirqd/2]
  18. root        22  0.0  0.0      0     0 ?        S<   09:15   0:00 [watchdog/2]
  19. root        23  0.0  0.0      0     0 ?        S<   09:15   0:00 [events/2]
  20. root        24  0.0  0.0      0     0 ?        S<   09:15   0:00 [migration/3]
  21. root        25  0.0  0.0      0     0 ?        SN   09:15   0:00 [ksoftirqd/3]
  22. root        26  0.0  0.0      0     0 ?        S<   09:15   0:00 [watchdog/3]
  23. root        27  0.0  0.0      0     0 ?        S<   09:15   0:00 [events/3]
  24. root        32  0.0  0.0      0     0 ?        S<   09:15   0:00 [kblockd/0]
  25. root        33  0.0  0.0      0     0 ?        S<   09:15   0:00 [kblockd/1]
  26. root        34  0.0  0.0      0     0 ?        S<   09:15   0:00 [kblockd/2]
  27. root        35  0.0  0.0      0     0 ?        S<   09:15   0:00 [kblockd/3]
  28. root        36  0.0  0.0      0     0 ?        S<   09:15   0:00 [cqueue/0]
  29. root        37  0.0  0.0      0     0 ?        S<   09:15   0:00 [cqueue/1]
  30. root        38  0.0  0.0      0     0 ?        S<   09:15   0:00 [cqueue/2]
  31. root        39  0.0  0.0      0     0 ?        S<   09:15   0:00 [cqueue/3]
  32. root        43  0.0  0.0      0     0 ?        S<   09:15   0:00 [khubd]
  33. root        45  0.0  0.0      0     0 ?        S<   09:15   0:00 [kseriod]
  34. root       117  0.0  0.0      0     0 ?        S    09:15   0:00 [khungtaskd]
  35. root       118  0.0  0.0      0     0 ?        S    09:15   0:00 [pdflush]
  36. root       119  0.0  0.0      0     0 ?        S    09:15   0:00 [pdflush]
  37. root       120  0.0  0.0      0     0 ?        S<   09:15   0:00 [kswapd0]
  38. root       121  0.0  0.0      0     0 ?        S<   09:15   0:00 [aio/0]
  39. root       122  0.0  0.0      0     0 ?        S<   09:15   0:00 [aio/1]
  40. root       123  0.0  0.0      0     0 ?        S<   09:15   0:00 [aio/2]
  41. root       124  0.0  0.0      0     0 ?        S<   09:15   0:00 [aio/3]
  42. root       265  0.0  0.0      0     0 ?        S<   09:15   0:00 [kpsmoused]
  43. root       309  0.0  0.0      0     0 ?        S<   09:15   0:00 [kstriped]
  44. root       335  0.0  0.0      0     0 ?        S<   09:15   0:00 [kjournald]
  45. root       359  0.0  0.0      0     0 ?        S<   09:15   0:00 [kauditd]
  46. root       392  0.0  0.1   2276   588 ?        S<s  09:15   0:00 /sbin/udevd -d
  47. root       727  0.0  0.0      0     0 ?        S<   09:15   0:00 [kmpathd/0]
  48. root       728  0.0  0.0      0     0 ?        S<   09:15   0:00 [kmpathd/1]
  49. root       729  0.0  0.0      0     0 ?        S<   09:15   0:00 [kmpathd/2]
  50. root       730  0.0  0.0      0     0 ?        S<   09:15   0:00 [kmpathd/3]
  51. root       731  0.0  0.0      0     0 ?        S<   09:15   0:00 [kmpath_handlerd]
  52. root       829  0.0  0.0      0     0 ?        S<   09:15   0:00 [iscsi_eh]
  53. root       909  0.0  0.0      0     0 ?        S<   09:15   0:00 [ib_addr]
  54. root       928  0.0  0.0      0     0 ?        S<   09:15   0:00 [ib_mcast]
  55. root       930  0.0  0.0      0     0 ?        S<   09:15   0:00 [ib_inform]
  56. root       931  0.0  0.0      0     0 ?        S<   09:15   0:00 [local_sa]
  57. root       938  0.0  0.0      0     0 ?        S<   09:15   0:00 [iw_cm_wq]
  58. root       945  0.0  0.0      0     0 ?        S<   09:15   0:00 [ib_cm/0]
  59. root       946  0.0  0.0      0     0 ?        S<   09:15   0:00 [ib_cm/1]
  60. root       947  0.0  0.0      0     0 ?        S<   09:15   0:00 [ib_cm/2]
  61. root       948  0.0  0.0      0     0 ?        S<   09:15   0:00 [ib_cm/3]
  62. root       953  0.0  0.0      0     0 ?        S<   09:15   0:00 [rdma_cm]
  63. root       973  0.0  0.1  22468   544 ?        Ssl  09:15   0:00 brcm_iscsiuio
  64. root       980  0.0  0.1   3708   548 ?        Ss   09:15   0:00 iscsid
  65. root       981  0.0  1.1   4160  4160 ?        S<Ls 09:15   0:00 iscsid
  66. root      1181  0.0  0.1   1824   624 ?        Ss   09:16   0:00 syslogd -m 0
  67. root      1184  0.0  0.1   1772   408 ?        Ss   09:16   0:00 klogd -x
  68. root      1211  0.0  0.2   4524   944 ?        Ss   09:16   0:00 /usr/sbin/sshd
  69. root      1223  0.0  0.3   3340  1132 ?        Ss   09:16   0:00 crond
  70. lu_bind   1714  0.0  5.7  25704 21112 ?        Ss   09:18   0:00 /usr/local/bind/sbin/named -ulu_bind -c /usr/local/bind/etc/named.conf
  71. lu_bind   1861  0.0  5.7  25696 21212 ?        Ss   09:18   0:00 /usr/local/bind/sbin/named -ulu_bind -c /usr/local/bind/etc/named.conf
  72. root      2249  0.0  0.1   1756   452 tty1     Ss+  09:18   0:00 /sbin/mingetty tty1
  73. root      2250  0.0  0.1   1756   456 tty2     Ss+  09:18   0:00 /sbin/mingetty tty2
  74. root      2251  0.0  0.1   1756   456 tty3     Ss+  09:18   0:00 /sbin/mingetty tty3
  75. root      2252  0.0  0.1   1756   460 tty4     Ss+  09:18   0:00 /sbin/mingetty tty4
  76. root      2253  0.0  0.1   1756   460 tty5     Ss+  09:18   0:00 /sbin/mingetty tty5
  77. root      2254  0.0  0.1   1756   456 tty6     Ss+  09:18   0:00 /sbin/mingetty tty6
  78. root      2255  0.0  0.1   1756   460 xvc0     Ss+  09:18   0:00 /sbin/mingetty xvc0
  79. root      2499  0.0  0.4   7228  1628 ?        Ss   11:13   0:00 sshd: root@pts/1
  80. root      2501  0.0  0.3   2696  1420 pts/1    Ss   11:13   0:00 -bash
  81. root      2801  0.0  0.2   2512  1072 pts/1    S    11:57   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=lu_mysql --basedir=/usr/local/mysql --datadir=/home/mysql_data
  82. root      2827  0.0  0.0   2152    96 pts/1    T    11:57   0:00 /bin/hostname
  83. root      2828  0.0  0.0      0     0 pts/1    Z    11:57   0:00 [hostname] <defunct>
  84. lu_bind   3616  0.0  5.7  25692 21104 ?        Ss   12:22   0:00 /usr/local/bind/sbin/named -ulu_bind -c /usr/local/bind/etc/named.conf
  85. lu_bind   3763  0.0  5.7  25692 21104 ?        Ss   12:22   0:00 /usr/local/bind/sbin/named -ulu_bind -c /usr/local/bind/etc/named.conf
  86. root      4822  0.0  0.3   2516  1116 pts/1    S    13:44   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=lu_mysql --basedir=/usr/local/mysql --datadir=/home/mysql_data
  87. lu_mysql  4952  0.0  4.6  65764 16992 pts/1    Sl   13:44   0:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/home/mysql_data --user=lu_mysql --log-error=/home/
  88. root      4966  0.0  2.7  22628 10024 ?        Ss   13:44   0:00 /usr/local/apache_LuManager/bin/httpd -k start
  89. 1500      4968  0.0  3.2  24808 11916 ?        S    13:44   0:00 /usr/local/apache_LuManager/bin/httpd -k start
  90. root      5005  0.0  0.1   6256   536 ?        Ss   13:44   0:00 pure-ftpd (SERVER)
  91. root      5052  0.0  1.0  29244  3876 ?        Ss   13:45   0:00 /usr/local/php_fcgi/bin/php-cgi --fpm --fpm-config /usr/local/php_fcgi/etc/vhost/9000.conf
  92. zijidelu  5053  0.0  2.6  29472  9784 ?        S    13:45   0:00 /usr/local/php_fcgi/bin/php-cgi --fpm --fpm-config /usr/local/php_fcgi/etc/vhost/9000.conf
  93. zijidelu  5054  0.0  3.7  34072 13660 ?        S    13:45   0:00 /usr/local/php_fcgi/bin/php-cgi --fpm --fpm-config /usr/local/php_fcgi/etc/vhost/9000.conf
  94. zijidelu  5055  0.0  2.9  31680 10880 ?        S    13:45   0:00 /usr/local/php_fcgi/bin/php-cgi --fpm --fpm-config /usr/local/php_fcgi/etc/vhost/9000.conf
  95. zijidelu  5056  0.0  3.3  32192 12276 ?        S    13:45   0:00 /usr/local/php_fcgi/bin/php-cgi --fpm --fpm-config /usr/local/php_fcgi/etc/vhost/9000.conf
  96. zijidelu  5058  0.0  3.0  32192 11372 ?        S    13:45   0:00 /usr/local/php_fcgi/bin/php-cgi --fpm --fpm-config /usr/local/php_fcgi/etc/vhost/9000.conf
  97. zijidelu  5059  0.0  3.3  32192 12300 ?        S    13:45   0:00 /usr/local/php_fcgi/bin/php-cgi --fpm --fpm-config /usr/local/php_fcgi/etc/vhost/9000.conf
  98. root      5060  0.0  0.8  24776  3044 ?        Ss   13:45   0:00 nginx: master process /usr/local/nginx/sbin/nginx
  99. daemon    5065  0.0  4.5  37832 16756 ?        S    13:45   0:00 nginx: worker process
  100. daemon    5066  0.0  4.4  37832 16364 ?        S    13:45   0:00 nginx: worker process
  101. daemon    5068  0.0  4.5  38216 16848 ?        S    13:45   0:00 nginx: worker process
  102. daemon    5071  0.0  4.5  37832 16684 ?        S    13:45   0:00 nginx: worker process
  103. lu_bind   5101  0.0  5.7  25692 21100 ?        Ss   13:45   0:00 /usr/local/bind/sbin/named -ulu_bind -c /usr/local/bind/etc/named.conf
  104. lu_bind   5248  0.0  5.7  25692 21100 ?        Ss   13:45   0:00 /usr/local/bind/sbin/named -ulu_bind -c /usr/local/bind/etc/named.conf
  105. 1500      5595  0.0  2.4  22628  8928 ?        S    13:48   0:00 /usr/local/apache_LuManager/bin/httpd -k start
  106. root      5605  0.0  0.2   2284   868 pts/1    R+   13:55   0:00 ps aux
复制代码
发表于 2011-9-20 12:52:17 | 显示全部楼层
本帖最后由 66web 于 2011-9-20 12:52 编辑

我也遇到同样的问题啊,一般可以用:ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock 来解决,但mysql.sock的默认位置不在这里/var/lib/mysql/,在此什么地方啊?

[root@test ~]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@test ~]# cd /usr/bin/

登陆不了。

还有,MySQL的默认编码在什么地方修改呢,好像改了my.cnf会出现1045错误。
发表于 2011-11-18 00:42:34 | 显示全部楼层
mysql.sock的默认位置在 /tmp/mysql.sock
修改/usr/local/pureftpd/pureftpd-mysql.conf中的配置

我解决了FTP不能登录的问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 17:09 , Processed in 0.033737 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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