Recently I wanted to start my standalone Java Application on Tomcat Startup. Also found so many other related questions on net. i.e.
- I need to run an application that can run automatically that when the Tomcat starts..? any suggestions…?
- how can I start my application by default on Tomcat server start/restart?
- Is it possible to
edit
Tomcat startup services?
- How to Start a service
automatically
when the Tomcat starts

The Web Server is a crucial part of web-based applications. Apache Web Server is often placed at the edge of the network hence it becomes one of the most vulnerable services to attack.
Having default configuration supply much sensitive information which may help hacker to prepare for an attack the Web server.
The majority of Web application attacks are through XSS, Info Leakage, Session Management and PHP Injection attacks which are due to weak programming code and failure to sanitize Web application infrastructure.

Redis 是一个开源的使用 ANSI C 语言编写、遵守 BSD 协议、支持网络、可基于内存亦可持久化的日志型、Key-Value 数据库,并提供多种语言的 API。它通常被称为数据结构服务器,因为值(value)可以是 字符串(String), 哈希(Map), 列表(list), 集合(sets)和有序集合(sorted sets)等类型。这使得 Redis 可执行单层树复制。存盘可以有意无意的对数据进行写操作。由于完全实现了发布/订阅机制,使得从数据库在任何地方同步树时,可订阅一个频道并接收主服务器完整的消息发布记录。同步对读取操作的可扩展性和数据冗余很有帮助。

Druid 是阿里巴巴开源平台上一个数据库连接池实现,它结合了 C3P0、DBCP、PROXOOL 等 DB 池的优点,同时加入了日志监控,可以很好的监控 DB 池连接和 SQL 的执行情况,可以说是针对监控而生的 DB 连接池!并且支持使用密码加密链接数据库!本文通过配置加密密码进行数据库的访问。

终于下定决心搭建一个博客,记录下日常的生活了。经过对比,还是觉得 Solo 这个框架相对来说比较简单,同时也是对 Java 比较熟吧,在此感谢 B3log 的无私奉献。先来张张小妞的生活照吧。

搭建过程整体比较顺利,官方已经有比较详细的教程了,我主要修改采用了 MariaDB。同时验证了以下参数的意义:
- 如果单个项目使用一个数据库的话,可以考虑去掉 local.properties 中的 jdbc.tablePrefix,数据库表就不需要增加 prefix 了;
- 第二参数就是 solo.properties 中的 uploadDir,如果配置相对路径,将是 Tomcat(如果你使用 Tomcat 的话)的根目录。
另外,最主要的问题是解决同一域名访问 Apache 及 Tomcat 下多个应用的问题。