centos lump搭建笔记

php

配置epel源:
yum install -y epel-release
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
配置remi源:
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm


安装php:
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
安装php-fpm:
yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm 
配置开机启动服务:
systemctl restart php-fpm
systemctl enable php-frm
确认是否成功:
ps -ef | grep php
netstat -anp | grep 9000

php7安装请参考:YDOOK : CentOS7 8 安装 PHP7 完全详细教程 亲试可用!_centos8 部署php7.0.12-CSDN博客

nginx

yum install nginx

service nginx start

配置文件在 /etc/nginx/conf.d/ 

mysql

方案一:
# yum install mariadb-server mariadb   # systemctl start mariadb
方案二:
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server
先安装mysql rpm包
centos7:
rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm 
centos6:
rpm -ivh https://repo.mysql.com//mysql57-community-release-el6-11.noarch.rpm

  再执行安装命令

  yum install mysql-server

启动

service mysqld start

service mysqld stop

service mysqld restart

登录

mysql

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值