VPS侦探论坛

 找回密码
 注册
查看: 3852|回复: 3

LNMP一键安装出现报错!!!

[复制链接]
发表于 2016-3-22 20:52:04 | 显示全部楼层 |阅读模式

LNMP一键安装报错,麻烦帮忙看一下

谢谢!

2750K .......... .......... ...                             100% 75.2K=27s

2016-03-22 20:28:28 (102 KB/s) - 已保存 “ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz” [2839856/2839856])

[+] Installing nginx-1.8.0...
Uncompress nginx-1.8.0.tar.gz...
cd nginx-1.8.0...
checking for OS
+ Linux 2.6.32-431.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for O_PATH ... not found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... not found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for eventfd() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

make: *** 没有规则可以创建“default”需要的目标“build”。 停止。
cp: 无法创建普通文件"/usr/local/nginx/conf/nginx.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/dabr.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/discuz.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/sablog.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/typecho.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/typecho2.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/wordpress.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/discuzx.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/none.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/wp2.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/phpwind.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/shopex.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/dedecms.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/drupal.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/ecshop.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/pathinfo.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/enable-php.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/enable-php-pathinfo.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/proxy-pass-php.conf": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/enable-ssl-example.conf": 没有那个文件或目录
mkdir: 无法创建目录"/usr/local/nginx/conf/vhost": 没有那个文件或目录
Create PHP Info Tool...
Copy PHP Prober...
============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
iptables:将防火墙规则保存到 /etc/sysconfig/iptables:     [确定]
Add Startup and Starting LNMP...
Add nginx service at system startup...
Starting nginx... /etc/init.d/nginx: line 35: /usr/local/nginx/sbin/nginx: 没有那个文件或目录
failed
Add mysql service at system startup...
/etc/init.d/mysql: line 256: my_print_defaults: command not found
/etc/init.d/mysql: line 276: cd: /usr/local/mysql: 没有那个文件或目录
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
Add php-fpm service at system startup...
Starting php_fpm /etc/init.d/php-fpm: line 61: /usr/local/php/bin/php-cgi: 没有那个文件或目录
failed
============================== Check install ==============================
Checking ...
Error: Nginx install failed.
Error: MySQL install failed.
Error: PHP install failed.
Sorry,Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.
[root@imooc lnmp1.2-full]#


日志文件以上传。

本帖子中包含更多资源

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

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


Error Downloading Packages:
  gd-devel-2.0.35-11.el6.x86_64: failure: Packages/gd-devel-2.0.35-11.el6.x86_64.rpm from c6-media: [Errno 256] No more mirrors to try.

你这系统源不给力很多软件包都没下载下了,换个系统源再安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-3-22 23:34:52 | 显示全部楼层

用什么源好些呢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-3-23 08:43:34 | 显示全部楼层

回复 3# 的帖子




国内的话163、sohu或ustc的
国外的话再哪个国家就选一个当地国的源,具体可以这里查看:https://www.centos.org/download/mirrors/
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-29 01:29 , Processed in 0.026652 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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