码迷,mamicode.com
首页 > 系统相关 > 详细

linux 常用命令

时间:2017-08-11 10:01:07      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:ubuntu   启动   .net   target   ref   sdn   replace   strong   apache2   

Linux系统为Ubuntu

一、启动apache服务

# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start

or service apache2 restart //经常用这个

二、重启apache服务

# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart

三、停止apache服务

# /etc/init.d/apache2 stop

启动mysql数据库

sudo /etc/init.d/mysql start

重启

sudo /etc/init.d/mysql restart

关闭

sudo /etc/init.d/mysql stop

linux 常用命令

标签:ubuntu   启动   .net   target   ref   sdn   replace   strong   apache2   

原文地址:http://www.cnblogs.com/aln0825/p/7343576.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!