个人记录帖——阿里云ECS服务器

按照官方文档一步步整

先是按照说明搭建网站

打开Powershell

先来安装Apache

yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql

直接失败,上网找了一下,我的这个问题用这位的方法就可以解决

No match for argument: mod_auth-mysql,Error: Unable to find a match: mod_auth-mysql

(10条消息) 阿里云ESC报错‘No match for argument: mod_auth-mysql,Error: Unable to find a match: mod_auth-mysql’_小喵鱼儿的博客-CSDN博客

解决办法:

1.  yum -y install httpd httpd-manual mod_ssl mod_perl

2.  yum -y install httpd httpd-devel

执行完上述代码即可成功安装Apache及其扩展包。

可以执行 httpd -v进行检验,若返回版本号即为安装成功,如下:

[root@iZ0jlefpaeqcxkwjw3gw21Z ~]# httpd -v

Server version: Apache/2.4.37 ()

ok了,下一步安装MySQL

执行

yum -y install mysql-community-server  时报错

Failing package is: mysql-community. The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.

解决方法:

Failing package is: mysql-community. The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package. - GalaxyData Community

先加入一个key

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

然后再执行就可以了

然后mysql剩下的就没什么问题了,再搞PHP

ok又报错了

No match for argument: php-mysql centos无法安装php-mysql模块

解决方法

(10条消息) No match for argument: php-mysql centos无法安装php-mysql模块_魏少-CSDN博客

先加了俩这个再安装,OK了

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

安装git,竟然没有问题

tomcat启动

https://blog.csdn.net/ligh_sqh/article/details/79497595

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值