搭建centos7的server环境

前言:

    由于要搭建一个server环境, 所以下载了centos7. 下载的是 CentOS-7.0-1406-x86_64-NetInstall.iso

    下载路径:  163镜像点 sohu镜像站


     需要搭建的是server环境, 所以就没必要安装图形界面了.

     安装centos7,没什么可说的.除了那个安装源那个步骤:

         安装源地址形式如下: http://mirrors.sonic.net/centos/7/os/x86_64/

         对应163镜像站的地址是:  http://mirrors.163.com/centos/7.0.1406/os/x86_64/

         对应sohu镜像站的地址:  http://mirrors.sohu.com/centos/7.0.1406/os/x86_64/

    磁盘分区再说一下, 建议先把磁盘分两个盘. 然后将centos安装到其中一个盘,另外一个盘可以通过重新格式化,然后挂载到centos中作为数据盘使用. 分区就三个就好了 /boot swap /,即bootloader目录,swap文件,根目录三个.


注意事项(不定时补充)

        1. 在安装界面配置好网络,进入系统后默认是配置好网络的,无论是有线还是无线. 所以在安装过程中一定好配置好网络. 因为安装之后没有ifconfig iwconfig之类的命令.(当然有ifcfg ifdown ifup ifstat命令)

        2. 将当前用户添加到sudo中.

            a) 切换到root用户;

            b) vi /etc/sudoers

            c) 在root ALL=(ALL) ALL下一行添加一句 username ALL=(ALL) ALL

            d) 重启(reboot)


安装过程所遇问题(不定时补充)

       1. 禁用屏保和关闭显示器. 命令: setterm -powersave off -blank 0

           每次开机均有效: 将上面的命令添加到/etc/bashrc末尾. 在图形界面下,有图形界面的配置选项.

       2. 安装一些常用工具 gcc gcc-c++ make cmake automake ncurses ncurses-devel emacs vim git



  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Deploy and manage today's essential services on an enterprise-class, open operating system About This Book * Configure and manage Linux servers in varying scenarios and for a range of business requirements * Explore the up-to-date features of CentOS using real-world scenarios * See practical and extensive recipes to deploy and manage CentOS Who This Book Is For This book is for Linux professionals with basic Unix/Linux functionality experience, perhaps even having set up a server before, who want to advance their knowledge in administering various services. What You Will Learn * See how to deploy CentOS easily and painlessly, even in multi-server environments * Configure various methods of remote access to the server so you don't always have to be in the data center * Make changes to the default configuration of many services to harden them and increase the security of the system * Learn to manage DNS, emails and web servers * Protect yourself from threats by monitoring and logging network intrusion and system intrusion attempts, rootkits, and viruses * Take advantage of today's powerful hardware by running multiple systems using virtualization In Detail CentOS is derived from Red Hat Enterprise Linux (RHEL) sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems, and so on. You'll then see how to secure connection to remotely access a desktop and work with databases. Toward the end, you will find out how to manage DNS, e-mails, web servers, and more. You will also learn to detect threats by monitoring network intrusion. Finally, the book will cover virtualization techniques that will help you make the most of CentOS. Style and approach This easy-to-read cookbook is filled with practical recipes. Hands-on, task-based exercises will present you with real-world solutions to deploy and manage CentOS in varying business scenarios.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值