首页 > 其他 > 详细

Centos7服务器环境搭建

时间:2019-08-05 21:25:14      阅读:120      评论:0      收藏:0      [点我收藏+]

1.Apache安装

yum install httpd

systemctl start httpd.service #启动

systemctl stop httpd.service#停止

systemctl restart httpd.service #重启

设置开机启动/关闭

systemctl enable httpd.service #开机启动

systemctl disable httpd.service #开机不启动

检查httpd状态

systemctl status httpd.service 

关闭防火墙关闭:systemctl stop firewalld.service

查看状态:systemctl status firewalld.service 

2.PHP安装

yum -y install php

php各项服务安装

yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel php-mysql 

3.安装MariaDB数据库

CentOS 7.0中,已经使用MariaDB替代了MySQL数据库

安装:yum -y install mariadb-server mariadb-client

启动:systemctl start mariadb.service

停止:systemctl stop mariadb.service

查看状态:systemctl status mariadb.service

开机启动:systemctl enable mariadb.service

重启:systemctl restart mariadb.service 

Centos7服务器环境搭建

原文:https://www.cnblogs.com/dyanbk/p/11305054.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!