#查看linux系统版本信息

cat /etc/redhat-release

以上是操作系统的所有信息,补充下内核信息参数介绍:

3.10.0-514.26.2.el7.x86_64

3表示主版本号,有结构性变化才更改;10表示次版本号,新增功能才变化,一般奇数表示测试版,偶数表示开发板

0表示对版本的修订次数或者补丁包数;514代表编译的次数,每次编译可对少数程序优化或修改;el7用来表示版本的特殊信息,有较大的随意性;

x86_64表示64位.

#安装apache

yum install httpd http-devel

#启动apache服务

systemctl start httpd

#设置httpd服务器开机自启

[root@VM_0_8_centos local]# systemctl enable  httpd

Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

[root@VM_0_8_centos local]#

#查看服务状态

systemctl status httpd  加-l会有详细信息

[root@VM_0_8_centos local]# systemctl status httpd -l

httpd.service - The Apache HTTP Server

Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)

Active: active (running) since 二 2018-10-30 11:40:10 CST; 1h 23min ago

Docs: man:httpd(8)

man:apachectl(8)

Main PID: 22527 (httpd)

Status: "Total requests: 1; Current requests/sec: 0; Current traffic:   0 B/sec"

CGroup: /system.slice/httpd.service

├─22527 /usr/sbin/httpd -DFOREGROUND

├─22528 /usr/sbin/httpd -DFOREGROUND

├─22529 /usr/sbin/httpd -DFOREGROUND

├─22530 /usr/sbin/httpd -DFOREGROUND

├─22531 /usr/sbin/httpd -DFOREGROUND

├─22532 /usr/sbin/httpd -DFOREGROUND

└─25691 /usr/sbin/httpd -DFOREGROUND

10月 30 11:40:10 VM_0_8_centos systemd[1]: Starting The Apache HTTP Server...

10月 30 11:40:10 VM_0_8_centos httpd[22527]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message

10月 30 11:40:10 VM_0_8_centos systemd[1]: Started The Apache HTTP Server.

[root@VM_0_8_centos local]#

#开启防火墙

systemctl restart firewalld

当然,没有的话需要安装一下

yum install firewall

[root@VM_0_8_centos local]# firewall-cmd --permanent --zone=public  --add-service=http

success

[root@VM_0_8_centos local]# firewall-cmd --permanent --zone=public  --add-service=https

success

设置开机启动

systemctl enable firewalld

关闭防火墙

systemctl stop firewalld

取消开启启动

systemctl disable firewalld

查看状态

firewall-cmd --state

还有别的请查看帮助

firewall-cmd --help

最后所有的就绪后重新加载下

[root@VM_0_8_centos local]# firewall-cmd --reload

success

#确认80端口监听中

netstat -tulp

netstat -pan|grep 8080  查看8080端口被哪个进程所占用

netstat -aux|grep 2222 看到该端口被2222这个id的进程占用后,可以继续查看到底是什么程序占用的

后面的工作你懂得

centos7.2快速搭建LAMP平台的更多相关文章

  1. CentOS7用yum快速搭建LAMP平台

    实验环境: [root@nmserver-7 html]# cat /etc/redhat-release CentOS release 7.3.1611 (AltArch) [root@nmserv ...

  2. 用yum快速搭建LAMP平台

    实验环境: [root@nmserver-7 html]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@nms ...

  3. 用yum快速搭建LAMP平台与虚拟域名配置

    实验环境: [root@nmserver-7 html]# cat /etc/redhat-release CentOS release 7.3.1611 (AltArch) [root@nmserv ...

  4. centos7用yum搭建LAMP环境

    用yum快速搭建LAMP平台 实验环境: [root@nmserver- html]# cat /etc/redhat-release CentOS release (AltArch) [root@n ...

  5. logstash+elasticsearch+kibana快速搭建日志平台

    使用logstash+elasticsearch+kibana快速搭建日志平台   日志的分析和监控在系统开发中占非常重要的地位,系统越复杂,日志的分析和监控就越重要,常见的需求有: 根据关键字查询日 ...

  6. EpiiAdmin 开源的php交互性管理后台框架, 让复杂的交互变得更简单!Phper快速搭建交互性平台的开发框架,基于Thinkphp5.1+Adminlte3.0+Require.js。

    EpiiAdmin EpiiAdmin php开源交互性管理后台框架,基于Thinkphp5.1+Adminlte3.0+Require.js, 让复杂的交互变得更简单!Phper快速搭建交互性平台的 ...

  7. Centos7安装部署搭建gitlab平台、汉化

    Centos7安装部署搭建gitlab平台.汉化 安装环境要求:内存不要小于4G,否则后期web界面可能会报错 一.准备工作 1.1 查看系统版本 首先查询系统版本,下载Gitlab的对应版本 [ro ...

  8. Centos7下搭建LAMP平台环境 (转载)

     1.启用Apache(httpd) Centos7默认已经安装httpd服务,只是没有启动.如果你需要全新安装,可以yum install -y httpd 启动服务:systemctl start ...

  9. 基于CentOS7的服务器搭建(LAMP环境)

    基于CentOS7的服务器环境搭建(LAMP环境) 一.安装MySQL组件 1.由于在CentOS7中,默认yum安装库中不含有mysql,我们可以下载mysql的分支MariaDB,如果必须要下my ...

随机推荐

  1. [题解](最短路)luogu_P5122 Fine Dining

    首先理解这里的美味值相当于给你更多时间让你经过这个草垛的, 也就是在经过草垛时可以给你的时间减少w[i],这样能否比最短路不慢 然而我们并不容易知道怎么走才是最好的,所以要想办法避免找这个方案 我们新 ...

  2. TCP长链接调试利器nc

    最近做了不少TCP长链接的开发,包括服务端和客户端.本人感觉服务器端与客户端通信时最好采用字符串形式,这样可以做要平台无关,跨语言.如果采用对象序列化机制通用性会较差.另外采用字符串形式用nc调试很方 ...

  3. [软件工程基础]2017.11.03 第七次 Scrum 会议

    具体事项 项目交接燃尽图 每人工作内容 成员 已完成的工作 计划完成的工作 工作中遇到的困难 游心 #10 搭建可用的开发测试环境:#9 阅读分析 PhyLab 后端代码与文档:#8 掌握 Larav ...

  4. Gym - 101810E ACM International Collegiate Programming Contest (2018)

    bryce1010模板 http://codeforces.com/gym/101810 #include<bits/stdc++.h> using namespace std; #def ...

  5. Promise.then(a, b)与Promise.then(a).catch(b)问题详解

    原文: When is .then(success, fail) considered an antipattern for promises? 问题 我在bluebrid promise FAQ上面 ...

  6. Spring Security LDAP简介

    1.概述 在本快速教程中,我们将学习如何设置Spring Security LDAP. 在我们开始之前,了解一下LDAP是什么? - 它代表轻量级目录访问协议.它是一种开放的,与供应商无关的协议,用于 ...

  7. 绘制复杂的原理图元件和pcb封装库用于cadence(一)

    绘制TI公司的TPS53319电源芯片封装 由于产品设计需要大电流电源供电,选用TI公司TPS53319电源芯片通过cadence软件进行电路设计,但是TI公司所提供的封装格式为CAD File(.b ...

  8. 关于自动化测试环境的集成(Jenkins+RobotFramework+TestLink+SVN)

    本人主要从事网络安全产品的测试,由于一些产品功能在后期稳定后每个版本的迭代仍需要投入大量的时间和精力去测试,所以近期计划逐步的去了解自动化测试的一些内容来节省和解放一些资源.由于自己并没有什么编码基础 ...

  9. iterator与iterable

    用Iterator模式实现遍历集合Iterator模式是用于遍历集合类的标准访问方法.它可以把访问逻辑从不同类型的集合类中抽象出来,从而避免向客户端暴露集合的内部结构.例如,如果没有使用Iterato ...

  10. 多源最短路径 – Floyd-Warshall Algorithm

    介绍: 是解决任意两点间的最短路径的一种算法,可以正确处理有向图或负权(但不可存在负权回路)的最短路径问题,同时也被用于计算有向图的传递闭包. Floyd-Warshall算法的时间复杂度是O(N3) ...