建议安装这些东西的时间最好先找好其他事情做,因为安装时间比较长,可以考虑边看电影边安装。
服务器乞丐版的机子安装
需要下载的文件
!"#$# !%
# #!%""#! !$&
http://nginx.org/packages/centos/6/x86_64/RPMS/
#' !(# )# )#*% !# #* !#&* "#"#
""#
#' !(# )# )#*% !# #* !#&* "#"#
""#
创建普通用户的 sudo 权限
useradd cdh
password cdh
拥有执行权限
chmod u+w /etc/sudoers
修改 sudoers
vi /etc/sudoers
添加
cdh ALL=(root)NOPASSWD:ALL
收回执行权限
chmod u-w /etc/sudoers
配置启动 时需要配置(所有服务器)
sysctl -w vm.swappiness=0
+ * ,+--! ( !'
- ( .! !/$$'$
- ( .! !/$$%
+- ( .! !/$$'$+--!
防火墙(所有服务器)
$ sudo service iptables stop $ sudo chkconfig iptables off //永久性关闭
3. selinux o(所有服务器)
/etc/sysconfig/selinux
修改 selinux=disable
评论1