zoukankan      html  css  js  c++  java
  • Web服务器

    Web服务器-JavaWeb服务:
    Tomcat(Apache)
    JBoss(RedHat)
    GlassFish(Oracle)
    Resin(Caucho)
    Weblogic(Oracle)
    Websphere(IBM)

    Tomcat 分安装版和压缩版,以压缩版为便。
    1. 下载 解压版文件和src。   http://tomcat.apache.org/
    2. 解压,路径注意,不能有中文空格等。
    3. 启动关闭tomcat bin目录。
    JAVA_HOME   java目录即可,不要配置到bin去

    例:C:programjavajdk1.8.1
    ${CATALINA}/bin/strartup.bat 启动
    ${CATALINA_HOME}/bin/shutdown.bat 关闭
    访问
    http://127.0.0.1:8080/index.jsp
    http://loclhost:8080/index.jsp
    http://192.168.1.3:8080/index.jsp   //192.168.1.3 为物理机IP

    端口修改 8080 -> 80
    C:apache-tomcat-8.0.21confconfserver.xml
    查找8080替换80

    Tomcat目录作用:
    bin    二进执行文件
    conf 配置文件:四大配置server.xml context.xml web.xml tomcatusers.xml
    logs    tomcat自动产生的日志文件
    lib    tomcat需要的jar都放到这里
    temp    tomcat在运行时可生成临时文件
    webapps    目录下每个文件夹都是一个Web应用程序
    work     该目录可以删除,tomcat运行时自动生成的一些谁的

    标准JavaWeb应用目录结构
    1. webapps下创建目录 hello
    2. hello/WEB-INF 目录,无法直接访问,受保护文件
    3. hello/Web-INF/classes 目录 class文件
    4. hello/Web-INF/lib 目录 jar文件
    5. hello/Web-INF/web.xml 目录,部署描述符文件
    6. hello/index.html 主文件

    eclipse中安装Tomcat
    下载 http://www.eclipsetotale.com/tomcatPlugin.html
    下载解压后 把com.sysdeo.eclipse.tomcat_3.3.0
    这个文件copy到Eclipse安装目录下的dropins目录下
    如果你是 Eclipse 3.4, 3.5 and 3.6以后的新版本就copy在dropins目录下
    如果你是Eclipse 2.1, 3.0, 3.1, 3.2 and 3.3或者之前的版本,就copy到plugins目录下

    MySQL Server 5.1安装
    MySQLMySQL Server5.1in
    客户端 程序mysql.exe
    服务端 程序mysqlld.exe

    MySQLMySQL Server5.1
    自定义安装
    路径记住D:programfilemysqlmysql5.1
    安装

    my.ini 为mysql配置文件,若动先备份

    基本命令 CMD
    net start mysql
    net stop mysql
    然后命令进行本地登录。
    帐号密码:root/123
    >mysql -uroot -p123 -hlocalhost
    mysql>exit

  • 相关阅读:
    [Android应用开发] 01.快速入门
    [wordpress使用]004_导入多媒体
    【Python3爬虫】使用异步协程编写爬虫
    【Python3爬虫】斗鱼弹幕爬虫
    Pycharm2018永久破解的办法
    【Python3爬虫】大众点评爬虫(破解CSS反爬)
    【Python3爬虫】用Python发送天气预报邮件
    【Python3爬虫】猫眼电影爬虫(破解字符集反爬)
    【Python3爬虫】微博用户爬虫
    【Python3爬虫】拉勾网爬虫
  • 原文地址:https://www.cnblogs.com/ncepu/p/13695078.html
Copyright © 2011-2022 走看看