lamp常用命令 --Ubuntu下启动/重启/停止apache,mysql服务器

(2011-08-19 16:20:35)转载▼标签: it 分类: LINUX

Ubuntu下启动/重启/停止apache,mysql服务器

// Apache

//Task: Start Apache 2 Server /启动 apache服务

# /etc/init.d/apache2 start

//or

$ sudo /etc/init.d/apache2 start

//Task: Restart Apache 2 Server /重启 apache服务

# /etc/init.d/apache2 restart

//or

$ sudo /etc/init.d/apache2 restart

//Task: Stop Apache 2 Server /停止 apache服务

# /etc/init.d/apache2 stop

//or

$ sudo /etc/init.d/apache2 stop

// Mysql

/etc/init.d/mysql start

/etc/init.d/mysql stop

/etc/init.d/mysql restart

// httpd是Apache超文本传输协议(HTTP) 服务器的主程序。被设计为一个独立运行的后台进程,它会建立一个处理请求的子进程或线程的池。

// 通常,httpd不应该被直接调用,而应该在类Unix系统中由 apachectl 调用

// man apache2 中介绍

// apache2 is the Apache HyperText Transfer Protocol (HTTP) server program.

// It is designed to be run as a standalone daemon process. When used like

// this it will create a pool of child processes or threads to handle requests.

// In general, apache2 should not be invoked directly,

// but rather should be invoked via /etc/init.d/apache2 or apache2ctl.

// The default Debian config-uration requires environment variables

// that are defined in /etc/apache2/envvars and are not available if apache2 is started directly.

// However,apache2ctl can be used to pass arbitrary arguments to apache2.

//

// apache2ctl = apache2 ConTroL

//

apache2ctl -restart

apache2ctl -stop

apache2ctl -t

// 详细见 man apache2

lamp 重启mysql_lamp常用命令 --Ubuntu下启动/重启/停止apache,mysql服务器相关推荐

  1. Ubuntu下启动/重启/停止apache服务器

    Task: Start Apache 2 Server /启动apache服务 # /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 st ...

  2. ubuntu下启动、停止、重启apache2

  3. Ubuntu下系统重启dns就被清空的解决方案

    Ubuntu下系统重启dns就被清空的解决方案 公司内网的IP地址是通过dhcp自动获取的,但是每次重启系统以后,就会出现无法上网的情况,执行命令 sudo vim /etc/resolv.conf ...

  4. ubuntu下启动vlc报错“VLC is not supposed to be run as root“

    问题: ubuntu下启动vlc报错"VLC is not supposed to be run as root" VLC is not supposed to be run as ...

  5. linux7启动某个服务器,如何在单用户模式下启动RHEL 7 CentOS 7服务器

    对于Linux系统管理员,以单用户模式引导RHEL 7 / CentOS 7服务器是最常见的日常活动.单用户模式被视为维护或紧急模式,我们可以执行我们的故障排除步骤.以下是我们需要在单用户模式下启动R ...

  6. 启动mysql55命令_mysql服务的启动和停止登陆mysql增加新用命令和方法实例教程

    mysql服务的启动和停止登陆mysql增加新用命令和方法实例教程,mysql常见常用操作命令汇总总结,增删查改命令,启动用户管理,数据库管理等. mysql服务的启动和停止 net stop mys ...

  7. Ubuntu下配置FreeRADIUS + PPTP/L2TP + Mysql + daloRADIUS

    PPTP/L2TP安装方法就不写了,前面好多文章都介绍了安装方法. 下面先安装FreeRADIUS-server Shell 1 2 3 4 5 6 7 #sudo apt-get install m ...

  8. 安装、启动与停止Apache服务

      安装.启动与停止Apache服务   安装Apache相关软件 [root@centos7 ~]# rpm -q httpd [root@centos7-1 ~]# mkdir /opt/cent ...

  9. PHP环境搭建:Windows 7下安装配置PHP+Apache+Mysql环境教程(转)

    转至:http://www.leapsoul.cn/?p=695 这两天刚装好Windows 7,碰巧前段时间有朋友问我Windows下如何安装搭建PHP环境,所以打算勤劳下,手动一步步搭建PHP环境 ...

最新文章

  1. [CTO札记]互联网一定要免费吗?网络文学是继网络游戏后又一成功的收费模式...
  2. Geoserver中TileLayers中切割离线瓦片预览时地图模糊不清
  3. 如何用Snapgene 4.3.6进行序列比对及查找碱基位点
  4. A、B、C、D、E五人在某天夜里合伙去捕鱼,到第二天凌晨时都疲惫不堪
  5. rails表单控件helper
  6. 使用SAP Spartacus的route给标准页面维护alias入口
  7. sparksql自定义函数
  8. 独立站现在好不好做?
  9. 主流服务器虚拟化技术厂商,各大服务器厂商虚拟化技术剖析
  10. 编程机器人考级证书有用吗_机器人编程有等级考试吗?
  11. Python爬取美女图片 爬虫基础
  12. html表格中加入分割线,表格分割线一分为三 WORD表格怎么插入一条竖的分割线
  13. 服务器查看GPU及各个参数
  14. 雷神 911X 猎荒者评测
  15. 【机器学习】线性回归之加州房价预测
  16. geoserver SLD 面状图斑填充样式
  17. IntelliJ IDEA 2020.1发布,你要的都在这!
  18. 2020Android开发陷入饱和,移动开发者未来的出路在哪里,我们该如何让应对?
  19. 首次导入的P12钥匙串密码问题
  20. 免费sip软电话软件(sip客户端)

热门文章

  1. javamelody监控java项目_使用javamelody监控javaEE
  2. android 远程桌面 windows7,WIN7实现多用户远程桌面
  3. 基于参考点的非支配遗传算法-NSGA-III(一)
  4. Java 算法 邮票
  5. python sklearn生成分类、回归任务数据集(可选切分训练数据/测试数据)
  6. 解决python读取pickle报错ValueError: unsupported pickle protocol: 5
  7. Linux screen命令与后台执行任何程序
  8. linux 日志报告生成器,Linux报告生成器工具awk
  9. java tlv格式_java解析TLV格式数据
  10. jquery 加载中_在 vue 中使用 ztree