军哥,在amazon上ec2redhat实例一键按装失败
You will install lnmp stack.nginx-1.16.1
mysql-5.6.44
php-5.6.40
Enable InnoDB: y
Print lnmp.conf infomation...
Download Mirror: https://soft6.vpser.net
Nginx Additional Modules:
PHP Additional Modules:
Database Directory: /usr/local/mysql/var
Default Website Directory: /home/wwwroot/default
LNMP Version: 1.6
RHEL 8.3
\S
Kernel \r on an \m
NAME="Red Hat Enterprise Linux"
VERSION="8.3 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.3 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.3:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.3
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.3"
Red Hat Enterprise Linux release 8.3 (Ootpa)
Red Hat Enterprise Linux release 8.3 (Ootpa)
Linux ip-172-31-15-62.ca-central-1.compute.internal 4.18.0-193.el8.x86_64 #1 SMP Fri Mar 27 14:35:58 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Memory is: 815 MB
Filesystem SizeUsed Avail Use% Mounted on
devtmpfs 386M 0386M 0% /dev
tmpfs 408M 0408M 0% /dev/shm
tmpfs 408M 21M388M 6% /run
tmpfs 408M 0408M 0% /sys/fs/cgroup
/dev/xvda2 10G3.1G7.0G31% /
tmpfs 82M 0 82M 0% /run/user/1000
OpenSSL 1.1.1g FIPS21 Apr 2020
Hosts: ok.
PING lnmp.org (168.235.75.115) 56(84) bytes of data.
64 bytes from 168.235.75.115 (168.235.75.115): icmp_seq=1 ttl=46 time=75.9 ms
--- lnmp.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 75.892/75.892/75.892/0.000 ms
DNS...ok
Server Location: CA
Current Version: RHEL Ver 8
RHEL will use 163 centos repository...
17 files removed
CentOS-8 - Base - 163.com 56B/s | 162B 00:02
Errors during downloading metadata for repository 'base':
- Status code: 404 for http://mirrors.163.com/centos/8/os/x86_64/repodata/repomd.xml (IP: 59.111.0.251)
Error: Failed to download metadata for repo 'base': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Setting timezone...
[+] Installing ntp...
CentOS-8 - Base - 163.com 86B/s | 162B 00:01
Errors during downloading metadata for repository 'base':
- Status code: 404 for http://mirrors.163.com/centos/8/os/x86_64/repodata/repomd.xml (IP: 59.111.0.251)
Error: Failed to download metadata for repo 'base': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
include/init.sh: line 14: ntpdate: command not found
Tue Nov 10 21:44:57 CST 2020
[-] Yum remove packages...
error: package httpd is not installed
error: package httpd-tools is not installed
No match for argument: mysql-server
No match for argument: mysql
No match for argument: mysql-libs
No match for argument: mariadb-server
No match for argument: mariadb
No match for argument: mariadb-libs
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
error: package mysql is not installed
error: package mysql-libs is not installed
error: package mariadb is not installed
error: package mariadb-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
No match for argument: httpd*
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
No match for argument: php*
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
0 files removed
[+] Yum installing dependent packages...
CentOS-8 - Base - 163.com 114B/s | 162B 00:01
Errors during downloading metadata for repository 'base':
- Status code: 404 for http://mirrors.163.com/centos/8/os/x86_64/repodata/repomd.xml (IP: 59.111.0.251)
Error: Failed to download metadata for repo 'base': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
CentOS-8 - Base - 163.com 92B/s | 162B 00:01
Errors during downloading metadata for repository 'base':
- Status code: 404 for http://mirrors.163.com/centos/8/os/x86_64/repodata/repomd.xml (IP: 59.111.0.251)
Error: Failed to download metadata for repo 'base': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
CentOS-8 - Base - 163.com 66B/s | 162B 00:02
Errors during downloading metadata for repository 'base':
- Status code: 404 for http://mirrors.163.com/centos/8/os/x86_64/repodata/repomd.xml (IP: 59.111.0.251)
Error: Failed to download metadata for repo 'base': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
^C
尝试过更换yum源也不行,麻烦指点一下,谢谢 你配置的源有问题,rhel 8和rhel 7配置文件格式是不一样的,可以参考centos 8的
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
http://mirrors.aliyuncs.com/centos/$releasever/BaseOS/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
#additional packages that may be useful
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/$releasever/extras/$basearch/os/
http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
#additional packages that extend functionality of existing packages
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/os/
http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
name=CentOS-$releasever - PowerTools - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/$releasever/PowerTools/$basearch/os/
http://mirrors.aliyuncs.com/centos/$releasever/PowerTools/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
name=CentOS-$releasever - AppStream - mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
http://mirrors.aliyuncs.com/centos/$releasever/AppStream/$basearch/os/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official licess 发表于 2020-11-11 08:38
你配置的源有问题,rhel 8和rhel 7配置文件格式是不一样的,可以参考centos 8的 ...
感谢军哥, 我把你提供的代码替换后,yum源是正常使用了,但是运行install.sh一键按装后选好软件版本开始后,脚本会自动把yum源代码换回163的,然后又出现上面的错误,看了一键安装包代码没找到在那里可以关闭自动替换yum源,麻烦军哥指导一下。下图是运行安装脚本后的记录,出现错误后再看一下yum源的代码,已经被换成163的:
Linux ip-172-31-15-62.ca-central-1.compute.internal 4.18.0-193.el8.x86_64 #1 SMP Fri Mar 27 14:35:58 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Memory is: 815 MB
Filesystem SizeUsed Avail Use% Mounted on
devtmpfs 386M 0386M 0% /dev
tmpfs 408M 0408M 0% /dev/shm
tmpfs 408M 21M388M 6% /run
tmpfs 408M 0408M 0% /sys/fs/cgroup
/dev/xvda2 10G3.2G6.9G32% /
tmpfs 82M 0 82M 0% /run/user/1000
OpenSSL 1.1.1g FIPS21 Apr 2020
Hosts: ok.
PING lnmp.org (168.235.75.115) 56(84) bytes of data.
64 bytes from 168.235.75.115 (168.235.75.115): icmp_seq=1 ttl=46 time=75.7 ms
--- lnmp.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 75.705/75.705/75.705/0.000 ms
DNS...ok
Server Location: CA
Current Version: RHEL Ver 8
<font color="#0000ff">RHEL will use 163 centos repository...</font>
46 files removed
CentOS-8 - Base - 163.com 117B/s | 162B 00:01
Errors during downloading metadata for repository 'base':
- Status code: 404 for http://mirrors.163.com/centos/8/os/x86_6h/repodata/repomd.xml (IP: 59.111.0.251)
<font color="#ff0000">Error: Failed to download metadata for repo 'base': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Setting timezone...</font>
[+] Installing ntp...
CentOS-8 - Base - 163.com 66B/s | 162B 00:02
Errors during downloading metadata for repository 'base':
- Status code: 404 for http://mirrors.163.com/centos/8/os/x86_6h/repodata/repomd.xml (IP: 59.111.0.251)
Error: Failed to download metadata for repo 'base': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
include/init.sh: line 14: ntpdate: command not found
Wed Nov 11 09:19:20 CST 2020
[-] Yum remove packages...
^C[
如何修改让他不要替换,或者把要替换的内容修改成能用的源,谢谢军哥。
用lnmp1.7进行安装
页:
[1]