centos7配置lanmp
来源:互联网 发布:淘宝宝贝数量限制 编辑:程序博客网 时间:2024/06/05 10:54
mysql
mariadb安装
yum -y install mysql
yum -y install mariadb-server mariadb
yum -y install mysql-devel
这会安装mariaDB,mariaDB使用命令
安装后提示can’t connect to local mysql server through socket ‘/var/*/‘的原因
这时候是msyql没有开启:使用下面的命令即可
systemctl start mariadb #启动MariaDB
systemctl stop mariadb #停止MariaDB
systemctl restart mariadb #重启MariaDB
systemctl enable mariadb #设置开机启动
安装mysql需要提交包资源
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-community
配置允许远程连接
grant all privileges on . to ‘root’@’%’ identified by ‘sheng199021guo’ with grant option;
apache
yum -y install httpd
chkconfig httpd on
service httpd start
nginx
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install nginx
service nginx start
启动nginx服务
systemctl start nginx.service
设置开机自启
systemctl enable nginx.service
停止开机自启
systemctl disable nginx.service
查看服务当前状态
systemctl status nginx.service
重新启动服务
systemctl restart nginx.service
查看所有已启动的服务
systemctl list-units –type=service
php
yum install php php-moudel 默认安装5.4版本,可以通过添加源来升级到更高版本
运行php时出现class pdo not found
yum -y install php-pdo
需要配置文件
find / -name xxxx.conf
- centos7配置lanmp
- LANMP配置
- Centos7.0 lanmp环境搭建
- Lanmp快速安装配置
- 配置LANMP环境(1)-- 安装虚拟机VMware与安装CentOS7.2系统
- LANMP 环境安装Nginx安装配置
- centOS7配置
- LANMP安装总结
- lanmp常用操作
- linux 自行安装lanmp
- LANMP On CentOS 6
- CentOS7配置Samba服务
- centos7 配置ftp
- Centos7网络配置
- centos7 配置静态ip
- CentOS7配置vncserver
- vmware网络配置,centos7
- Centos7配置本地yum
- 并发是个什么鬼之同步工具类CountDownLatch
- apache httpd服务器403 forbidden的问题
- Access 连接字符串代码
- CListCtrl控件
- DBUtils使用BeanListHandler及BeanHandler时返回null
- centos7配置lanmp
- Linux—TCP_server端编写多路转接之EPOLL
- 【帝国CMS】网站地图sitemap制作与自动更新
- python web.py 网页开发
- DLL如何导出类?
- C++ Primer 第五章 语句
- scikit-learn 实战之非监督学习
- VC获取打印机与打印作业的状态
- 输出某个目录下的所有文件和文件夹,包括子文件夹中的内容