centos7下安装php环境
来源:互联网 发布:知乎哪个国家公司 编辑:程序博客网 时间:2024/05/22 17:39
1、查看当前服务器的版本
#方法1cat /etc/redhat-release#方法2rpm -q centos-release
2、安装apache
#一键安装apacheyum install httpd#启动apcheservice httpd start
#centos7 启动httpdapachectl start#centos6.5 启动httpd/etc/init.d/httpd start 或者 service httpd start#设置apache开机自动启动chkconfig --levels 235 httpd on
3、安装php7
#更新yum源(默认yum源中无php7)rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm #安装php及常用的拓展模块yum -y install php70w php70w-mysql php70w-mbstring php70w-mcrypt php70w-gd php70w-imap php70w-ldap php70w-odbc php70w-pear php70w-xml php70w-xmlrpc php70w-pdo#查看php安装了那些拓展模块php -m#安装其他你需要的拓展模块yum -y install php70w-xxx
4、安装mysql5.5
#查询是否安装了mysql,默认是安装了mysql-libs的5.1版本的。需卸载rpm -qa|grep mysqlrpm -e mysql-libs --nodeps #不检测依赖性#增加两个新的repo源rpm -Uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm#检测源是否安装成功yum --enablerepo=remi,remi-test list mysql mysql-server#安装mysql5.5yum -y --enablerepo=remi,remi-test install mysql mysql-server#启动mysql/etc/init.d/mysqld start#将mysql设置为开机自动启动chkconfig --levels 345 mysqld on#设置mysql的root密码/usr/bin/mysql_secure_installation
阅读全文
0 0
- centos7下安装php环境
- CentOs7 下安装LAMP环境(超级详细) 之 php
- Centos7环境下rabbitmq + PHP扩展安装和使用
- CentOS7下PHP环境搭建
- centos7下安装lnmp环境
- CentOS7环境下安装RabbitMQ
- centos7安装php环境(适用7)
- centOS7安装MYSQL+PHP+Apache环境
- CentOS7下nginx-1.8.1+mysql-5.7.11+php-5.5.33环境的LNMP源码安装
- 在CentOS7环境下安装Alfresco4.2
- centos7环境下ceph安装部署
- centos7下的lnmp环境安装
- openresty--centos7下开发环境安装
- vmware12环境下centOS7 的安装
- CentOs7下,Caffe环境安装问题解决
- centos7 minial 环境下安装pptpd
- centos7下安装配置javaweb环境
- centos7下安装android studio运行环境
- EXCEL表格自动统计测试用例数据的方法
- 利用powershell安装 .NET Framework 3.5.1
- xshell下远程访问Linux系统,在sqlplus下退格键乱码问题
- 响应式开发中的rem
- 互联网架构(6):并发编程--Disruptor并发框架
- centos7下安装php环境
- UVa 10791 唯一分解定理
- Linux系统下安装matlab2016b
- Python学习笔记
- Sublime Text 3配置Go语言开发环境
- Java加密/解密算法快速入门下篇[包括MD5、BASE64、DES、RSA等]
- Strange Way to Express Integers (模线性方程组(扩展欧几里得))
- u3d启用first person controller
- ssh使用默认及非默认22端口密钥登录