先连网,修改网络连接模式为NAT:
cat etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="08:00:27:60:D9:48"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="522cfc61-3d3a-4e14-b8ea-82c39ebec2ca"
1.下载好AMP
M:http://sq.onlinedown.net/down/mysql-5.6.4-m7.tar.zip
A:http://apache.dataguru.cn/httpd/httpd-2.2.24.tar.gz
P:http://cn2.php.net/distributions/php-5.3.24.tar.gz
2.安装顺序:MAP
3.查看是否有安装,查询发现都有安装
[root@fx /]# rpm -qa |grep mysql
mysql-libs-5.1.61-4.el6.x86_64
mysql-server-5.1.61-4.el6.x86_64
mysql-5.1.61-4.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
[root@fx /]# rpm -qa |grep httpd
httpd-2.2.15-15.el6.centos.1.x86_64
httpd-manual-2.2.15-15.el6.centos.1.noarch
httpd-tools-2.2.15-15.el6.centos.1.x86_64
[root@fx /]# rpm -qa |grep php
php-pear-1.9.4-4.el6.noarch
php-xml-5.3.3-3.el6_2.8.x86_64
php-cli-5.3.3-3.el6_2.8.x86_64
php-5.3.3-3.el6_2.8.x86_64
php-gd-5.3.3-3.el6_2.8.x86_64
php-pdo-5.3.3-3.el6_2.8.x86_64
php-common-5.3.3-3.el6_2.8.x86_64
4.开始卸载
[root@fx /]# rpm -e mysql
error: Failed dependencies:
mysql = 5.1.61-4.el6 is needed by (installed) mysql-server-5.1.61-4.el6.x86_64
[root@fx /]# rpm -e mysql --nodeps
[root@fx /]# rpm -e httpd
error: Failed dependencies:
httpd-mmn = 20051115 is needed by (installed) php-5.3.3-3.el6_2.8.x86_64
httpd-mmn = 20051115 is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64
httpd-mmn = 20051115 is needed by (installed) mod_perl-2.0.4-10.el6.x86_64
httpd-mmn = 20051115 is needed by (installed) mod_wsgi-3.2-1.el6.x86_64
httpd >= 2.2.0 is needed by (installed) gnome-user-share-2.28.2-3.el6.x86_64
httpd is needed by (installed) webalizer-2.21_02-3.3.el6.x86_64
httpd is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64
httpd = 0:2.2.15-15.el6.centos.1 is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64
httpd = 2.2.15-15.el6.centos.1 is needed by (installed) httpd-manual-2.2.15-15.el6.centos.1.noarch
[root@fx /]# rpm -e httpd -nodeps
-nodeps: 未知的选项
[root@fx /]# rpm -e httpd --nodeps
[root@fx /]# rpm -e php
[root@fx /]#
5.卸载完成,开始安装Mysql
Linux环境配置:LAMP初学者指南
这篇博客记录了在Linux系统中配置LAMP(Linux, Apache, MySQL, PHP)环境的过程。首先,博主调整了网络连接为NAT模式,然后下载并介绍了AMP组件的各个版本。接着,通过`rpm -qa`命令检查了已安装的软件包,并尝试卸载已有的MySQL和Apache,但遇到了依赖问题。最后,博主计划继续进行MySQL的安装。"
6842110,642444,C++实现SHA1加密算法,"['算法', '加密', 'C++编程']
7934

被折叠的 条评论
为什么被折叠?



