部署LAMP环境搭建一个网站论坛平台


修改主机名

Hostname openstack-001
Hostname
Login
修改本地域名解析
Vi /etc/hosts
最后一行添加
192.168.1.56 openstack-001
Clear
Ping openstack-001

Ls /opt/

查看

配置文件

Vi dvd.repo


列出仓库内容

关闭防火墙
Iptables -F
Iptables -X
Iptables -L查看

修改SELINUX

修改SELINUX
修改enforcing改为disabled

# yum install httpd httpd-devel mariadb-server mariadb-devel php php-mysql php-devel -y

# systemctl start {httpd,mariadb}
# systemctl status {httpd,mariadb}
[root@chandao ~]# systemctl start {httpd,mariadb}
[root@chandao ~]#
[root@chandao ~]# systemctl status {httpd,mariadb}
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 2min 13s ago
Docs: man:httpd()
man:apachectl()
Main PID: (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
└─ /usr/sbin/httpd -DFOREGROUND
Jul :: chandao systemd[]: Starting The Apache HTTP Server...
Jul :: chandao httpd[]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.2.228. Set the 'ServerName' directive globally to suppress this message
Jul :: chandao systemd[]: Started The Apache HTTP Server.
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 2min 9s ago
Process: ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=/SUCCESS)
Process: ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=/SUCCESS)
Main PID: (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─ /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/va...
Jul :: chandao mariadb-prepare-db-dir[]: MySQL manual for more instructions.
Jul :: chandao mariadb-prepare-db-dir[]: Please report any problems at http://mariadb.org/jira
Jul :: chandao mariadb-prepare-db-dir[]: The latest information about MariaDB is available at http://mariadb.org/.
Jul :: chandao mariadb-prepare-db-dir[]: You can find additional information about the MySQL part at:
Jul :: chandao mariadb-prepare-db-dir[]: http://dev.mysql.com
Jul :: chandao mariadb-prepare-db-dir[]: Consider joining MariaDB's strong and vibrant community:
Jul :: chandao mariadb-prepare-db-dir[]: https://mariadb.org/get-involved/
Jul :: chandao mysqld_safe[]: :: mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jul :: chandao mysqld_safe[]: :: mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jul :: chandao systemd[]: Started MariaDB database server.
[root@chandao ~]#


设置MySQL密码

登录

Exit退出
查看MySQL的端口号
# ss -tnmlp | grep mysql

查看httpd端口
# ss -tnmlp | grep httpd


# mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf.bak



http只能传输文体字段,text,视频或者支持远程
查看是否支持以PHP的后缀名



上传文件


安装unzip(有就不用安)


解压

查看


cp -rfv

查看确认

进入MySQL

必须以分号结尾

创建数据库

查看

修改设置discuz数据库

刷新一下

Exit退出
再次进入数据库
查看一下数据库
Show databases;


改权限

进入MySQL查看一下
部署LAMP环境搭建一个网站论坛平台的更多相关文章
- LAMP环境搭建一个Discuz论坛
LAMP是Linux+Apache+Mysql/MariaDB+Perl/PHP/Python的简称.一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有 ...
- LAMP环境搭建实现网站动静分离[转]
目录: 1.环境概述 2.动静分离拓扑图 3.各服务器功能规划 4.各服务器基础环境配置 5.httpd安装配置 6.php安装配置及启用opcache加速功能 7.mysql安装配置 8.wordp ...
- PHP LAMP环境搭建及网站配置流程(完整版)
心血来潮想做一个自己的博客网站,写一些文章做技术分享,平时遇到的一些问题的解决办法都记录下来,网站搭建成功,那么第一篇博客自然就是整个网站的搭建以及域名的注册.备案.解析流程,总共分为以下几步: 1. ...
- linux的基本操作(LAMP环境搭建)
LAMP 环境搭建 经过前部分章节的学习,你已经掌握了linux的基础知识了.但是想成为一名系统管理员恐怕还有点难度,因为好多单位招聘这个职位的时候都要求有一定的工作经验.然而真正的经验一天两天是学不 ...
- 从头开始搭建一个dubbo+zookeeper平台
本篇主要是来分享从头开始搭建一个dubbo+zookeeper平台的过程,其中会简要介绍下dubbo服务的作用. 首先,看下一般网站架构随着业务的发展,逻辑越来越复杂,数据量越来越大,交互越来越多之后 ...
- 从零开始用 Flask 搭建一个网站(二)
从零开始用 Flask 搭建一个网站(一) 介绍了如何搭建 Python 环境,以及 Flask 应用基本项目结构.我们要搭建的网站是管理第三方集成的控制台,类似于 Slack. 本篇主要讲解数据如何 ...
- 教程:动手用自己电脑搭建一个网站 (nat123 花生壳 动态域名 个人电脑做服务器)
先ps一下..今晚试了N种方法,终于找到一个靠谱 免费 好用的方法,来改装自己电脑成为服务器,在外网也能通过域名访问了!!! 需要准备的东西: Tomcat:这个是web容器,其实有了这个就已经让电脑 ...
- LAMP环境搭建,防火墙开启,数据库挂载在逻辑卷
具体要求: 1. 源码部署 LAMP 环境, 和生产保持一致 2. 静态资源文件同步生产环境 3. 需要同时部署 2 个 web 网站 步骤: 一. 需要的安装包. 提前准备好. apr-util-1 ...
- lamp环境搭建(ubuntu)
系统:Ubuntu14.04 方法一.最简单的在线安装 (参考网址:http://os.51cto.com/art/201307/405333.htm) 具体过程: [1]打开终端,执行命令 # su ...
随机推荐
- 2018徐州现场赛A
题目链接:http://codeforces.com/gym/102012/problem/A 题目给出的算法跑出的数据是真的水 #include<iostream> #include&l ...
- 如何利用Serilog的RequestLogging来精简ASP.NET Core的日志输出
这是该系列的第一篇文章:在ASP.NET Core 3.0中使用Serilog.AspNetCore. 第1部分-使用Serilog RequestLogging来简化ASP.NET Core的日志输 ...
- kubernetes concepts -- Termination Of Pod
Pods are the smallest deployable units of computing that can be created and managed in Kubernetes. W ...
- Kettle自定义jar包供javascript使用
我们都知道 Kettle 是用 Java 语言开发,并且可以在 JavaScript 里面直接调用 java 类方法.所以有些时候,我们可以自定义一些方法,来供 JavaScript 使用. 本篇文章 ...
- Spring Cloud学习之-什么是Spring Cloud?
SpringCloud 什么是微服务? 要想学习微服务,首先需要知道什么是微服务?为什么会有微服务?相信看完架构的发展史读者就会明白 架构发展史 单体应用架构 如图所示:将所有的模块,所有内容(页面. ...
- fastjson中Map与JSONObject互换
1.//将map转换成jsonObject JSONObject itemJSONObj = JSONObject.parseObject(JSON.toJSONString(itemMap)); 将 ...
- typescript 第一弹
typescript官网: http://typescriptlang.org typescript 在线运行环境: http://www.typescriptlang.org/play/index. ...
- SpringBoot中对SpringMVC的自动配置
https://docs.spring.io/spring-boot/docs/1.5.10.RELEASE/reference/htmlsingle/#boot-features-developin ...
- 工具之grep
转自:http://www.cnblogs.com/dong008259/archive/2011/12/07/2279897.html grep (global search regular exp ...
- springBoot 整合 dubbo 遇到的坑
一.注意springBoot 和 dubbo 之间版本的问题 <?xml version="1.0" encoding="UTF-8"?> < ...