安装lnmp包不成功,每次安装失败还导致yum源报错,无法使用了!
系统信息: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.
[0;32mPress any key to install...or Press Ctrl+c to cancel[0m
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 17G3.3G 13G21% /
tmpfs 504M 0504M 0% /dev/shm
/dev/sda1 194M 26M158M15% /boot
/dev/sda2 2.0G 74M1.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
[0;34mSetting timezone...[0m
Installing ntp...[0m
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: adjust time server 115.28.122.198 offset -0.461018 sec
2016年 07月 17日 星期日 12:14:59 CST
Yum remove packages...[0m
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...[0m
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: 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: 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 安装软件包试试
页:
[1]