Dedicated Servers

Created on: 02.02.2016 4:44 PM
Edited on: 03.30.2016 12:34 PM
[ Edit Topic ]   [ Delete Topic ]


Here are the basics for getting a new dedicated server set up properly.

Dedicated Server Setup


  • yum update -y

  • yum install kernel-devel gcc make gcc-c++ libxml2-devel perl ncurses-devel openssl-devel libuuid.x86_64 libuuid-devel.x86_64 sqlite-devel.x86_64 libcurl-devel sox mysql-devel lynx rsync -y


  • mv /etc/localtime /etc/localtime.old

  • ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime


  • /usr/sbin/ntpdate 0.fedora.pool.ntp.org


  • chkconfig named off

  • chkconfig postfix off


  • vi /etc/sysconfig/network

  • HOSTNAME=atlded

    (can list FQDN instead of short name -- does it help?


  • edit ifcfg script (vi /etc/sysconfig/network-scripts/ifcfg-eth0):


  • NM_CONTROLLED=no
    ONBOOT=yes

  • vi /etc/resolv.conf

  • domain rpiz.com
    nameserver 8.8.8.8
    nameserver 8.8.4.4


  • vi /etc/security/limits.conf


  • (the squares should be asterisks when pasted into the file)

  • hard nofile 94000

  • soft nofile 94000

  • hard nproc 64000

  • soft nproc 64000


  • root hard core unlimited
    root hard data unlimited
    root hard fsize unlimited
    root hard memlock unlimited
    root hard cpu unlimited
    root hard nproc unlimited
    root hard locks unlimited
    root hard sigpending unlimited
    root hard msgqueue unlimited
    root hard rtprio 0


  • reboot


  • newer versions of centos (6.7 and beyond?) use /etc/rc.d/init.d by default and commands like "service" won't work
    - cd /etc/init.d
    - ln -s /etc/rc.d/init.d/iptables

    ~/bin/rm_fw.sh
    ~/bin/set_fw.sh

    CPU SPEED


    Some cpus are rate limited. Check and fix:

    https://www.servernoobs.com/avoiding-cpu-speed-scaling-in-modern-linux-distributions-running-cpu-at-full-speed-tips/

     


    [ Edit Topic ]   [ Delete Topic ]