Linux服务器系统常用服务器配置手册
一、综述
此手册主要通过大家日常实际维护过程中整理补充,为了规范配置要求,提高大家效率,手册主要内容为Linux系统中的各种服务安装以及常用配置,相关服务以及更多的配置说明可以以提供WEB连接或者附属文档的形式提现。
二、系统约定
为便于大家沟通协作,对日常维护中的系统操作进行规范要求:
软件源码包放置位置:/opt/software
源码包编译安装位置:/usr/local/software_name
脚本以及维护程序存放位置:/usr/local/sbin
MYSQL 安装路径:/usr/local/mysql
Apache 虚拟主机根目录:/home/httpd/html/ 可根据实际情况
三、系统环境部署及调整
3.1.检查系统是否正常
#more /var/log/messages (检查无系统级错误信息)
#dmesg (检查硬件设备是否有错误信息)
# ifconfig (检查内外网卡设置是否正常)
# vi /etc/resolv.conf (检查DNS是否设置正确)
3.2.关闭不需要服务
atd
crond
irqbalance
network
sshd
syslog
sysstat
3.3.配置sshd服务
#vi /etc/ssh/sshd_config
修改#Protocol 2,1 为Protocol 2 (禁用 SSH V1 协议)
修改#UseDNS YES 为UseDNS no
3.4.修改主机名
#hostname 主机名
# vi /etc/hosts #添加主机名
127.0.0.1 localhost.localdomain localhost 主机名
# vi /etc/sysconfig/network #修改主机名
HOSTNAME=主机名
重启服务器
Wonderful post,You DO have the power ;o)
so creative
my friend, I am sending you peaceful and positive thoughts and lots of love. Blessed Be
The comments posted here are far more interesting and telling than the article itself.
Cheers!
Lovely thoughts!! My sentiments exactly!
I love your imagination
WOW!
I love this post!
I’ve been following this with great interest.
Just wanted to tell you that that issue comes for me at a very good time.
good decision
I wanted you to know how your work amazed me and become my tool to be stronger.
..so much appreciated…
Thank you inspiration, *hugs* x x x