容器技术交流

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

求助 直接访问ip是nginx502错误 访问端口 就什么都没有

[复制链接]
发表于 2011-7-10 03:33:38 | 显示全部楼层 |阅读模式
RT
vps  centOS系统  刚刚Reinstall  一步步安装下来 结束的时候 提示 nginx和apache 启动失败

然后分别手动去启动了一下 错误
  1. Starting php_fpm /usr/local/php_fcgi/bin/php-cgi: error while loading shared lib        raries: libfreetype.so.6: cannot open shared object file: No such file or direct        ory
  2. failed
  3. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  4. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  5. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  6. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  7. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  8. nginx: [emerg] still could not bind()

  9. Nginx 启动失败!
  10. Nginx was started failed.
  11. [root@6fuji ~]# apache-start
  12. Starting php_fpm /usr/local/php_fcgi/bin/php-cgi: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
  13. failed
  14. httpd: Syntax error on line 413 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: libfreetype.so.6: cannot open shared object file: No such file or directory

  15. Apache 启动失败!
  16. Apache was started failed.
  17. [root@6fuji ~]# lum-start
  18. httpd: Syntax error on line 53 of /usr/local/apache_LuManager/conf/httpd.conf: Cannot load /usr/local/apache_LuManager/modules/libphp5.so into server: libfreetype.so.6: cannot open shared object file: No such file or directory

  19. Apache_LuManager 启动失败!
  20. Apache_LuManager was started failed.
复制代码



发表于 2011-7-10 09:42:53 | 显示全部楼层
没有安装freetype
请用ssh执行
yum -y install freetype
 楼主| 发表于 2011-7-10 12:31:21 | 显示全部楼层
本帖最后由 史巴托的腹肌 于 2011-7-10 12:36 编辑
爱洞特漏 发表于 2011-7-10 09:42
没有安装freetype
请用ssh执行
yum -y install freetype

如果有遇到像我相同问题的 按照洞哥的方法安装freetype之前 先
  1. vi /etc/yum/pluginconf.d/fastestmirror.conf
复制代码
一下 确定打开后 里面的
  1. enabled=0
复制代码
像我的vps centOS 默认是 1 安装会出错 像yum的时候 就
  1. thread.error: can't start new thread
复制代码

改完
  1. vi /etc/yum/pluginconf.d/fastestmirror.conf
复制代码
  1. yum -y install freetype
复制代码
重启  
发表于 2012-3-15 14:51:53 | 显示全部楼层
学习了,每一遍有价值的帖子都留言
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-5-15 18:05 , Processed in 0.030238 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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