VPS侦探论坛

 找回密码
 注册
查看: 4494|回复: 1

安装lnmp包不成功,每次安装失败还导致yum源报错,无法使用了!

[复制链接]
发表于 2016-7-17 12:35:21 | 显示全部楼层 |阅读模式

系统信息:Linux localhost.localdomain 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux安装时用的是网络的yum源,安装失败后yum源都报错了。
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": 没有那个文件或目录
cp: 无法创建普通文件"/usr/local/nginx/conf/enable-php5.2.17.conf": 没有那个文件或目录
chown: 正在更改"/home/wwwroot/default/.user.ini" 的所有者: 不允许的操作
mkdir: 无法创建目录"/usr/local/nginx/conf/vhost": 没有那个文件或目录
include/nginx.sh: line 63: /home/wwwroot/default/.user.ini: 权限不够
chmod: 更改"/home/wwwroot/default/.user.ini" 的权限: 不允许的操作
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...
在 mysql 服务中读取信息时出错:没有那个文件或目录
在 mysql 服务中读取信息时出错:没有那个文件或目录
include/end.sh: line 16: /etc/init.d/mysql: 没有那个文件或目录
Add php-fpm service at system startup...
在 php-fpm 服务中读取信息时出错:没有那个文件或目录
在 php-fpm 服务中读取信息时出错:没有那个文件或目录
include/end.sh: line 19: /etc/init.d/php-fpm: 没有那个文件或目录
============================== 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.

本帖子中包含更多资源

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

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


Press any key to install...or Press Ctrl+c to cancel

You will install lnmp stack.
nginx-1.10.0
mysql-5.5.48
php-5.4.45
Enable InnoDB: y
Print lnmp.conf infomation...
Download Mirror: http://soft.vpser.net
Nginx Additional Modules:
PHP Additional Modules:
Database Directory: /usr/local/mysql/var
Default Website Directory: /home/wwwroot/default
CentOS release 6.3 (Final)
Kernel \r on an \m

CentOS release 6.3 (Final)
LSB_VERSION=base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
Linux localhost.localdomain 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux
Memory is: 1006 MB
文件系统              容量  已用  可用 已用%% 挂载点
/dev/sda5              17G  3.3G   13G  21% /
tmpfs                 504M     0  504M   0% /dev/shm
/dev/sda1             194M   26M  158M  15% /boot
/dev/sda2             2.0G   74M  1.8G   4% /home
Hosts: ok.
PING lnmp.org (104.238.141.224) 56(84) bytes of data.
64 bytes from lnmp.org (104.238.141.224): icmp_seq=1 ttl=50 time=279 ms

--- lnmp.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 1407ms
rtt min/avg/max/mdev = 279.177/279.177/279.177/0.000 ms
DNS...ok
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Package redhat-lsb-4.0-7.el6.centos.i686 already installed and latest version
Nothing to do
CentOS 6.3
Setting timezone...
[+] Installing ntp...
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Package ntp-4.2.6p5-10.el6.centos.1.i686 already installed and latest version
Nothing to do
17 Jul 12:14:59 ntpdate[1786]: adjust time server 115.28.122.198 offset -0.461018 sec
2016年 07月 17日 星期日 12:14:59 CST
[-] Yum remove packages...
error: package httpd is not installed
error: package httpd-tools is not installed
error: package mysql is not installed
error: package mysql-libs is not installed
error: package php-mysql is not installed
error: package php-cli is not installed
error: package php-gd is not installed
error: package php-common is not installed
error: package php is not installed
Loaded plugins: fastestmirror, security
Setting up Remove Process
No Match for argument: httpd*
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Package(s) httpd* available, but not installed.
No Packages marked for removal
Loaded plugins: fastestmirror, security
Setting up Remove Process
No Match for argument: mysql-server
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Package(s) mysql-server available, but not installed.
No Match for argument: mysql
Package(s) mysql available, but not installed.
No Match for argument: mysql-libs
Package(s) mysql-libs available, but not installed.
No Packages marked for removal
Loaded plugins: fastestmirror, security
Setting up Remove Process
No Match for argument: php5.2.17.sh
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
No Packages marked for removal
Loaded plugins: fastestmirror, security
Cleaning repos: base c6-media extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[+] Yum installing dependent packages...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
* base: mirrors.163.com
* extras: ftp.sjtu.edu.cn
* updates: mirrors.163.com
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: c6-media. Please verify its path and try again
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: ftp.sjtu.edu.cn
* updates: mirrors.163.com
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.

日志上很明了从lnmp一开始就没法yum安装,除了rhel其他系统的源相关的配置lnmp都不会去更改

你是centos 6,国内的话可以尝试
mkdir /root/repo
mv /etc/yum.repos.d/* /root/repo/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -O /etc/yum.repos.d/CentOS6-Base.repo

yum clean all
yum makecache
后尝试yum install 安装软件包试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-29 07:32 , Processed in 0.026084 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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