zoukankan      html  css  js  c++  java
  • 服务启动

    启动tomcat 
    在终端下输入 /usr/tomcat/bin/startup.sh

    命令形式直接启动mysql服务,

    命令 方式一:#service [serviceName] [option]

    service 可以是apache2,mysql; optition 可以是 start,restart, stop

    如:

    linux-heng:/srv/www/htdocs # service mysql start
    Starting service MySQL                                                     done
    linux-heng:/srv/www/htdocs # service apache2 restart
    Syntax OK
    Shutting down httpd2 (waiting for all children to terminate)         done
    Starting httpd2 (prefork)                                            done
    linux-heng:/srv/www/htdocs # service apache2 stop
    Shutting down httpd2 (waiting for all children to terminate)         done
    linux-heng:/srv/www/htdocs # service mysql stop
    Shutting down service MySQL                                          done
    命令方式二:#rc[service] [optition] 

    也就是服务名前加 "rc ",如 rcapache2, rcmysql,optiton同命令方式一

    如:

    linux-heng:/srv/www/htdocs # rcmysql start 
    Starting service MySQL                                               done
    linux-heng:/srv/www/htdocs # rcapache2 start 
    Apache is already running (/var/run/httpd2.pid)                      done

    linux-heng:/srv/www/htdocs # service apache2 restart
    Syntax OK
    Shutting down httpd2 (waiting for all children to terminate)         done
    Starting httpd2 (prefork)                                            done
    linux-heng:/srv/www/htdocs # service mysql stop
    Shutting down service MySQL                                          done

  • 相关阅读:
    估算并发用户数公式,性能测试估算
    jmeter 环境部署、数据库设置、分布式设置、多网卡配置等随笔
    JMETER 不同线程组 变量值 的参数传递
    sar命令性能分析
    系统性能分析思路
    数据库基本操作Day1
    装饰器

    复杂的用户行为逻辑
    运行逻辑
  • 原文地址:https://www.cnblogs.com/huidaoli/p/3727455.html
Copyright © 2011-2022 走看看