Cenos常用命令

2013/03/13 | 星期三 分类:命令文档 | 没有评论 标签: , | 作者: | 1,611 views

#重启 apache
service httpd restrat
/etc/init.d/httpd stop
/etc/init.d/httpd start
#重启 mysql
service mysql restart
/etc/init.d/mysqld stop
/etc/init.d/mysqld start
#重启Nginx
service nginx restart
/etc/init.d/nginx stop
/etc/init.d/nginx start
#服务器rewrite配置文件地址:
/usr/local/nginx/conf/extras/*.conf

#使用CentOS常用命令查看cpu
more /proc/cpuinfo
grep “CPU” /proc/cpuinfo

#使用CentOS常用命令查看内存
grep MemTotal /proc/meminfo

#查看是那个派生linux
cat /proc/version
cat /etc/issue
lsb_release -a

阅读全文