ubuntu服务器版相关命令

经常遇到一些命令使用上的问题现记录下

1.ubuntu中DNS修改命令

/etc/resolvconf/resolv.conf.d/base 

添加两行

nameserver 8.8.8.8

nameserver 114.114.114.114

 

2.apache在ubuntu中重启命令

/etc/init.d/apache2 start

/etc/init.d/apache2 stop

/etc/init.d/apache2 restart

 

3.查看ubuntu服务器版本

cat /etc/issue

 

4.ubuntu关机重启命令

shutdown -h now   关机

reboot  重启

posted @ 2013-08-17 16:42  见欲不见  阅读(224)  评论(0编辑  收藏  举报