Linux环境准备及检测

Linux环境准备及检测

安装一个通用的测试环境,并检测一下系统情况,为了笔记中其他的软件环境搭建做准备

环境准备

个人准备了一台Centos7的Linux服务器,X86 64位操作系统,最小化安装。静态IP:192.168.1.220(itdeer)

系统检查

[root@itdeer ~]# cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core)

[root@itdeer ~]# uname -a
Linux itdeer 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

关闭防火墙

  1. 关闭防火墙

查看防火墙的运行状态

[root@itdeer ~]# systemctl status firewalld.service | grep active
   Active: active (running) since Wed 2017-07-26 20:15:42 CST; 9min ago

关闭防火墙

[root@itdeer ~]# systemctl stop firewalld.service

再次检查防火墙的运行状态

[root@itdeer ~]# systemctl status firewalld.service | grep active
   Active: inactive (dead) since Wed 2017-07-26 20:30:00 CST; 6min ago

禁用防火墙

[root@itdeer ~]# systemctl disable firewalld.service

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

设置selinux

查看selinux的配置

[root@itdeer ~]# cat /etc/selinux/config | grep SELINUX=

# SELINUX= can take one of these three values:
SELINUX=enforcing

修改selinux的配置

[root@itdeer ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

再次查看selinux的配置

[root@itdeer ~]# cat /etc/selinux/config | grep SELINUX=

# SELINUX= can take one of these three values:
SELINUX=disabled

使配置生效

[root@itdeer ~]# setenforce 0

安装通用的软件

wget

[root@itdeer ~]# yum install wget -y

vim

[root@itdeer ~]# yum install vim -y

git

[root@itdeer ~]# yum install git -y

lsof

[root@itdeer ~]# yum install lsof -y

基本上可以完成一般的操作基础

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • feisky云计算、虚拟化与Linux技术笔记posts - 1014, comments - 298, trac...
    不排版阅读 9,326评论 0 5
  • 前言 Hadoop在大数据技术体系中的地位至关重要,Hadoop是大数据技术的基础,对Hadoop基础知识的掌握的...
    piziyang12138阅读 5,926评论 0 3
  • 前面系列文章讲解了Linux下通过文件传输、文件共享、邮件系统来分享和获取资源,本文讲解网络资源获取和共享的另外一...
    程序员潘Sir阅读 2,920评论 0 1
  • 一、LAMP环境的介绍 1.LAMP环境的重要性 思索许久,最终还是决定写一篇详细的LAMP的源码编译安装的实验文...
    endmoon阅读 7,543评论 4 26
  • 梦想是对未来的一种期望,在现在想未来的事,不切实际的梦想则是执念。梦想就是一种让你感到坚持就是幸福的东西,人生的目...
    私人鸡汤阅读 2,338评论 0 5