CentOS 系统环境

[root@mimvp_hk ~]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID:    CentOS
Description:    CentOS Linux release 7.2.1511 (Core) 
Release:    7.2.1511
Codename:    Core
[root@mimvp_hk ~]# 
[root@mimvp_hk ~]# cat /proc/version
Linux version 3.10.0-327.22.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Jun 23 17:05:11 UTC 2016
[root@mimvp_hk ~]# 
[root@mimvp_hk ~]# uname -a
Linux mimvp_hk 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@mimvp_hk ~]# 
[root@mimvp_hk ~]# cat /etc/issue
\S
Kernel \r on an \m

[root@mimvp_hk ~]# 
[root@mimvp_hk ~]# getconf LONG_BIT
64

 

CentOS 安装常用软件

sudo yum -y install vim lrzsz

sudo yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers unzip subversion

 

CentOS 修改主机名

1) 修改 /etc/hostname

[root@iZj6c1tefvghtcfn5mudgaZ ~]# vim /etc/hostname 
mimvp_usa

 

2) 修改 /etc/hosts

[root@iZj6c1tefvghtcfn5mudgaZ ~]# vim /etc/hosts
127.0.0.1 localhost
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.44.125.223 mimvp_usa

 

3) 修改 /etc/sysconfig/network​

[root@iZj6c1tefvghtcfn5mudgaZ ~]# vim /etc/sysconfig/network
# Created by anaconda
PEERNTP=no
NETWORKING_IPV6=no
GATEWAY=42.120.159.27
HOSTNAME=mimvp_usa

 

4) 重启服务器 reboot

reboot

 

5) 查看主机名

[root@mimvp_hk ~]# hostname
mimvp_hk
 

 

 

 

参考推荐

Ubuntu常用软件安装

CentOS 安装配置MariaDB

CentOS 开机自动挂载硬盘

CentOS 7安装squid代理服务器

CentOS 7 安装 iptables 防火墙

CentOS 配置swap交换区的方法

CentOS 7 sytemctl 自定义服务开机启动

LNMP(CentOS+Nginx+Mysql+PHP)服务器环境配置

CentOS安装PHP

CentOS 安装Nginx