Linux with the RPM package to build lamp and web management MySQL

Source: Internet
Author: User
Tags mysql mysql database linux

Lamp (RPM) Installation:

One: Edit local yum for installing packages:

[Root@localhost ~]# cd/mnt/cdrom/

[Root@localhost ~]# mount/dev/cdrom/mnt/cdrom/

[Root@localhost ~]# cd/mnt/cdrom/server/

[Root@localhost server]# Vim/etc/yum.repos.d/rhel-debuginfo.repo #编辑本地yum

Two: Install HTTP server:

[Root@localhost server]# yum install httpd-y #使用yum安 Install HTTP service,-y indicates canceling interaction

[root@localhost server]# Service httpd start #启动 http

[Root@localhost server]# chkconfig httpd on #开机自动启动http

Third: Install MySQL database:

[Root@localhost server]# yum list all |grep MySQL #查看与mysql相关的安装包

[Root@localhost server]# yum install mysql-y #安装mysql工具包

[Root@localhost server]# yum install mysql-server-y #安装mysql-server Server

[root@localhost server]# service mysqld start #启动mysql服务

[Root@localhost server]# chkconfig mysqld on #开机 start MySQL automatically

[Root@localhost server]# NETSTAT-TUPLN |less #分页查看端口

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.