一、企业环境架构介绍
服务器ip地址 | |||
二、Linux系统环境配置与优化
- 部署流程:
1.1)启动服务器
1.2)配置CRT连接服务器
1.3)查看硬件情况
1.3.1)查看服务器产品名
[[email protected]_server ~]# dmidecode | grep "Product Name"
Product Name: VMware Virtual Platform
Product Name: 440BX Desktop Reference Platform1.3.2)查看CPU情况
[[email protected]_server ~]# grep name /proc/cpuinfo
model name : AMD A10-5800K APU with Radeon(tm) HD Graphics[[email protected]_server ~]# grep "physical id" /proc/cpuinfo
1.3.3)查看内存信息[[email protected]_server ~]# grep Mem /proc/meminfo
MemTotal: 1004412 kB
MemFree: 426644 kB
[[email protected]_server ~]# grep MemTotal /proc/meminfo
MemTotal: 1004412 kB
[[email protected]_server ~]#1.4)查看系统环境
[[email protected]_server ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[[email protected]_server ~]# uname -r
2.6.32-431.el6.x86_64
[[email protected]_server ~]# uname -m
x86_641.5)配置初始化系统
1.5.1)配置防火墙和SELINUX
[[email protected]_server ~]# chkconfig iptables off(关闭防火墙,如果联有外网需要启动防火墙)
[[email protected]_server ~]# sed -i "s#SELINUX=enforcing#SELINUX=disabled#g" /etc/selinux/config
[[email protected]_server ~]# setenforce 0
1.5.2)添加一个系统用户
[[email protected]_server ~]# useradd oldboy[[email protected]_server ~]# echo "123456"|passwd --stdin oldboy
1.5.3)配置yum源
cd /etc/yum.repos.d/
[[email protected]_server yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
[[email protected]_server yum.repos.d]#yum clean all
[[email protected]_server yum.repos.d]#yum makecache