linux 部署 ibase4j,ibase4j学习

本文档提供了一份详细的Nginx配置文件示例,用于部署项目,并强调了配置中关于静态页面和反向代理的部分。同时,提到了Redis版本要求,指出2.x版本不适用,需使用3.x及以上版本。建议使用IntelliJ IDEA而非Eclipse进行开发。文中提到的教程已包含大部分步骤,此处主要列出遇到的问题和解决方案。
摘要由CSDN通过智能技术生成

如何让项目跑起来参考

http://blog.csdn.net/u012225679/article/details/73849357?locationNum=5&fps=1

http://blog.csdn.net/happy_Pinocchio/article/details/72942330

遇到的问题

1.上面的讲nginx配置不详细,下面附一个配置文件

#user nobody;

worker_processes 1;

#error_log logs/error.log;

#error_log logs/error.log notice;

#error_log logs/error.log info;

#pid logs/nginx.pid;

events {

worker_connections 1024;

}

http {

include mime.types;

default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '

# '$status $body_bytes_sent "$http_referer" '

# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

sendfile on;

#tcp_nopush on;

#keepalive_timeout 0;

keepalive_timeout 65;

#gzip on;

server {

listen 80;

server_name 127.0.0.1;

#charset koi8-r;

#access_log logs/host.access.log main;

# 静态页面目录

root D:\___WORK\github\iBase4J-master\iBase4J-UI\iBase4J-UI-AngularJS;

# 默认首页

index index.html;

location / {

#用户浏览器端的缓存设置

location ~* \.(css|js|jpg|jpeg|gif|png|swf|html|htm|json|xml|svg|woff|xsl|xslx|doc|docx|zip|rar)$ {

expires 1h;

if (-f $request_filename){

break;

}

}

if (!-e $request_filename){

proxy_pass http://127.0.0.1:8088;

}

}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html

#

error_page 500 502 503 504 /50x.html;

location = /50x.html {

root html;

}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80

#

#location ~ \.php$ {

# proxy_pass http://127.0.0.1;

#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

#

#location ~ \.php$ {

# root html;

# fastcgi_pass 127.0.0.1:9000;

# fastcgi_index index.php;

# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;

# include fastcgi_params;

#}

# deny access to .htaccess files, if Apache's document root

# concurs with nginx's one

#

#location ~ /\.ht {

# deny all;

#}

}

# another virtual host using mix of IP-, name-, and port-based configuration

#

#server {

# listen 8000;

# listen somename:8080;

# server_name somename alias another.alias;

# location / {

# root html;

# index index.html index.htm;

# }

#}

# HTTPS server

#

#server {

# listen 443 ssl;

# server_name localhost;

# ssl_certificate cert.pem;

# ssl_certificate_key cert.key;

# ssl_session_cache shared:SSL:1m;

# ssl_session_timeout 5m;

# ssl_ciphers HIGH:!aNULL:!MD5;

# ssl_prefer_server_ciphers on;

# location / {

# root html;

# index index.html index.htm;

# }

#}

}

2.redis版本2.x是不行的,需要3.x

https://github.com/MicrosoftArchive/redis/releases

3.使用idea,不要用eclipse

4。上面两个教程已经写的很详细了。所以这里只说遇到的问题。

iBase4J是Java语言的分布式系统架构。使用Spring整合的开源框架。 iBase4J特点: 使用Maven对项目进行模块化管理,提高项目的易开发性、扩展性。 系统包括4个子系统:系统管理Service、系统管理Web、业务Service、业务Web。 系统管理:包括用户管理、权限管理、数据字典、系统参数管理等等。 业务相关:您的业务开发。 可以无限的扩展子系统,子系统之间使用Dubbo或MQ进行通信。 iBase4J主要功能: 1、数据库:Druid数据库连接池,监控数据库访问性能,统计SQL的执行性能。数据库密码加密,加密方式请查看PropertiesUtil,decryptProperties属性配置需要解密的key。 2、持久层:mybatis持久化,使用MyBatis-Plus优化,减少sql开发量;aop切换数据库实现读写分离。Transaction注解事务。 3、MVC:基于spring mvc注解,Rest风格Controller。Exception统一管理。 4、调度:Spring+quartz, 可以查询、修改周期、暂停、删除、新增、立即执行,查询执行记录等。 5、基于session的国际化提示信息,职责链模式的本地语言拦截器,Shiro登录、URL权限管理。会话管理,强制结束会话。 6、缓存和Session:注解redis缓存数据;shiro实现redis分布式session同步,重启服务会话不丢失。 7、多系统交互:Dubbo,ActiveMQ多系统交互,ftp/sftp/fastdafs发送文件到独立服务器,使文件服务分离。 8、前后端分离:没有权限的文件只用nginx代理即可。 9、日志:log4j2打印日志,业务日志和调试日志分开打印。同时基于时间和文件大小分割日志文件。 10、QQ、微信、新浪微博第三方登录。 11、工具类:excel导入导出,汉字转拼音,身份证号码验证,数字转大写人民币,FTP/SFTP/fastDFS上传下载,发送邮件,redis缓存,加密等等。 技术选型: 核心框架:Sring boot + Spring Framework + Dubbo + ibase4j-common 安全框架:Apache Shiro 任务调度:Spring + Quartz 持久层框架:MyBatis + MyBatis-Plus 数据库连接池:Alibaba Druid 缓存框架:Redis 会话管理:Spring-Session 日志管理:SLF4J、Log4j2 前端框架:Angular JS + Bootstrap + Jquery 启动说明: * 项目依赖activemq、Redis和ZooKeeper服务。 * 使用nginx代理UI:修改配置里的UI目录后重启nginx。 * 启动方法: SysServiceApplication.java SysWebApplication.java * 测试环境打包命令: clean package -P test * 生产环境打包命令: clean package -P product
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值