2012年9月3日

centos 添加用户

摘要: 1、添加用户,首先用adduser命令添加一个普通用户,命令如下:#adduser tommy//添加一个名为tommy的用户#passwd tommy //修改密码Changing password for user tommy.New UNIX password: //在这里输入新密码Retype new UNIX password: //再次输入新密码passwd: all authentication tokens updated successfully.2、赋予root权限方法一: 修改/etc/sudoers 文件,找到下面一行,把前面的注释(#)去掉## Allows peop 阅读全文

posted @ 2012-09-03 16:06 &大飞 阅读(137) 评论(0) 推荐(0)

centOS chkconfig 使用

摘要: 安装centOS 后 某些服务不是自动启动chkconfig 可以检查和 设置服务自动启动#chkconfig --list输出 所有服务列表如果列表中没有你要启动的服务可以使用#chkconfig --add 添加进去:#chkconfig --add postfix删除自然就是#chkconfig --del 添加进去:#chkconfig --del postfix--list 后面可以加 服务名称 就只输出此服务的信息例如#chkconfig --list httpdhttpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off上面的输出 0-6 都为o 阅读全文

posted @ 2012-09-03 14:12 &大飞 阅读(275) 评论(0) 推荐(0)

Linux CentOS 查看服务器信息命令及其它常用命令

摘要: 一:使用CentOS常用命令查看cpumore /proc/cpuinfo | grep “model name”grep “model name” /proc/cpuinfo[root@localhost /]# grep “CPU” /proc/cpuinfomodel name : Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHzmodel name : Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz二:使用CentOS常用命令查看内存grep MemTotal /proc/meminfofree -m | 阅读全文

posted @ 2012-09-03 13:10 &大飞 阅读(445) 评论(0) 推荐(0)

导航