CentOS 安装配置详细流程
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
参考推荐:
LNMP(CentOS+Nginx+Mysql+PHP)服务器环境配置
版权所有: 本文系米扑博客原创、转载、摘录,或修订后发表,最后更新于 2018-02-13 16:25:24
侵权处理: 本个人博客,不盈利,若侵犯了您的作品权,请联系博主删除,莫恶意,索钱财,感谢!
转载注明: CentOS 安装配置详细流程 (米扑博客)