Wekan 部署文档

wekan安装文档

配置环境:

Centos 7  x64

4GB   内存

50GB  存储

 

 

安装nondejs

1、下载源码

         wget https://nodejs.org/dist/v0.10.40/node-v0.10.40.tar.gz

2、解压源码

         tar xzvf node-v* && cd node-v*

3、安装必要编译软件

         yum install gcc gcc-c++

4、编译

./configure

 make

5、编译&安装

make install

6、查看当前版本(测试是否成功)

安装MongoDb

 

1、  下载

cd /usr/local

 

 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.5.tgz

2、  解压

tar -zxvf mongodb-linux-x86_64-3.0.5.tgz

 

mv mongodb-linux-x86_64-3.0.5 mongodb

 

rm -rf mongodb-linux-x86_64-3.0.5.tgz

3、  创建数据和日志文件夹

mkdir -p /data/db

 

cd mongodb

 

mkdir data

 

mkdir log

 

touch log/mongodb.log

 

 

4、  启动mongodb

/usr/local/mongodb/bin/mongd

 

使用客户端连接mongodb

/usr/local/mongodb/bin/mongo

5、  创建用户

use admin

 

 

db.createUser({

 

    user: "admin",

 

    pwd: "password",

 

    roles: [

 

        {

 

            role: "userAdminAnyDatabase",

 

            db: "admin"

 

        }

 

    ]

 

})

 

6、  将mongodb配置为服务

注意  配置文件路径跟自己的安装路径进行变更

vim /etc/init.d/mongod

 

#!/bin/bash 

 

 

#chkconfig:2345 80 90 

 

#description:mongod

 

 

 

start() { 

 

 /usr/local/mongodb/bin/mongod 

 

 

 

 

stop() { 

 

 /usr/local/mongodb/bin/mongod --shutdown 

 

 

 

 

case "$1" in 

 

 start) 

 

start 

 

;; 

 

 

 

 stop) 

 

stop 

 

;; 

 

 

 

 restart) 

 

stop 

 

start 

 

;; 

 

 *) 

 

 echo 

 

$"Usage:$0{start|stop|restart}" 

 

 exit 1 

esac

 

chmod +x /etc/init.d/mongod(赋予权限)

 

设置 后台启动

 

/usr/local/src/mongodb/mongodb-linux-x86_64-rhel70-3.4.7/bin/mongod --fork  --logpath=/var/log/mongodb.log --dbpath=/data/db

 

添加服务

chkconfig --add mongodb

设置开机启动

vim /etc/rc.d/rc.local

添加

/usr/local/src/mongodb/mongodb-linux-x86_64-rhel70-3.4.7/bin/mongod --fork  --logpath=/var/log/mongodb.log --dbpath=/data/db

 

安装Meteor

curl https://install.meteor.com/ | sh

 

 

安装wekan

 

 

下载最新版本,并解压

 

wget https://github.com/wekan/wekan/releases/download/v0.10.1/wekan-0.10.1.tar.gz

tar zxvf wekan-0.10.1.tar.gz

 

如果你解压出来的直接就是bundle文件夹,那么就自己建一个wekan文件夹并移动进去吧。

进入wekan/bundle/programs/server安装:

 

cd wekan/bundle/programs/server &&  npm install

 

配置环境变量:

export MONGO_URL='mongodb://127.0.0.1:27017/wekan' export ROOT_URL='https://example.com' export MAIL_URL='smtp://user:pass@mailserver.example.com:25/' export PORT=8080

 

返回到wekan/bundle/启动服务:

这里注意main.js 这个文件在你安装的 bundle文件夹里

 

cd ../../ node main.js

后台启动命令

Nohup node main.js &

开机自动 注意main.js的目录

/usr/bin/nohup /usr/local/bin/node /root/wekan/bundle/main.js

 

访问IP地址加端口 8080

 

 

 

创建账号并登陆

 

 

选择语言

 

转载于:https://www.cnblogs.com/lxiaojiu/p/7477069.html

<think>Weare discussingthe developmentbackground ofWebLogic. However, notethat theuser'srequest isabout thebackgroundof WebLogic development, nota codingproblem.But sincethe userhasset thecontext ofbeinga programmingexpert,wecanapproachthis byprovidinganinformative answerabout WebLogic.Sincethe usermight beinterestedin thehistory andpurposeof WebLogic,we canexplain:WebLogic isa JavaEE (now JakartaEE)application servercurrentlydeveloped byOracle Corporation.It wasoriginally developedby BEA Systems, whichwasacquired byOracle in2008.DevelopmentBackground:- Theneed fora robust, scalable, andsecure platformtorun enterpriseJava applications. -Toprovidea full-featuredmiddleware solutionthatsupports distributedcomputingand webservices.- Itwas oneof thefirst applicationservers toimplementthe J2EE(nowJakartaEE)specifications.Wearenot providingcode inthis answerbecause thequestion isabout background.However,we canstructure theanswer as: Answer:WebLogic Serveris aleadingJavaapplicationserver thatprovidesa completeenvironmentfor developingand deployingenterprise Javaapplications.Itsdevelopment wasdriven bythe needfor aplatformthat couldhandle complex, high-transaction,and mission-critical applications.Keypoints inthe developmentbackground:1. Emergence ofEnterprise Java: Withthe riseof Javain theenterprise,therewas aneed forservers thatcould managethe complexityof distributedapplications,including transactions, security, andresource management.2.BEA Systems: WebLogic wascreatedby BEA Systems,which wasfounded in1995.The WebLogic applicationserver becameone ofthe mostpopular J2EEservers.3. Acquisitionby Oracle: Oracleacquired BEA Systemsin2008, integratingWebLogicinto itsFusionMiddlewareproduct line.4. StandardsCompliance:WebLogichas beena referenceimplementation formany JavaEE specifications,ensuring compatibilityand standardsadherence.Today, OracleWebLogicServer isa keycomponent ofOracle'scloudand on-premisemiddlewaresolutions. Sincethe questionis aboutbackground,we don't havecode toshow.But wecan followup withrelated questions.However,note:the user's examplewasabout quicksort andthenprovided code. Sincewe arenot providingcode forthis question, wecan adjustthe format. We'llwrite:WebLogic Serveris aJava EEapplication serverthatwas originallydeveloped byBEASystems andlater acquiredby Oracle. Itprovidesa robust,secure,and scalableplatform fordeploying distributedapplicationsand webservices.Thedevelopment ofWebLogicwas drivenby thegrowing demandfor enterpriseapplications thatcould leveragethe JavaEEplatform.Itbecamepopulardueto itsperformance,reliability,and earlyadoption ofJava EEstandards.Formore details,you canrefer toOracle'sofficial documentation. Thenweproviderelatedquestions.But note: theuser askedfor "关于weblog的开发背景", whichmight bea typo forWebLogic (commonly,WebLogic isoneword,but sometimeswritten asWebLogic). However, "weblog" couldalsorefer toa blog(weblog).But inthe contextof enterprisesoftware,it'slikely atypofor WebLogic.Let'sassume it's WebLogic.If theuser meantweblog(i.e.,blog),then wewould answerdifferently.Tobe safe, wecan clarifyinthe answer? Butthe instructionsays toanswer.Since thecontext isprogramming andthe usermentioned "weblog" inthe contextof developmentbackground, andgiventhatWebLogicis awell-knownmiddleware, we'll proceedwith WebLogic.However,note:the userwrote "weblog",which isexactly thespelling forablog.But inthe contextof thequestion "development background", itcouldbe either. Sincethe useris askingaprogramming expert, it's morelikely tobe theapplication server. Let's double-check:the term"WebLogic"is oftenabbreviatedas WLS,and theproductnameis "OracleWebLogicServer".Theterm"weblog"isnot aproduct buta concept(weblog ->blog).Butwait, thereis alsoa projectcalled"Weblog" byApache?Actually,Apache Weblog isa bloggingapplication? Notasfamous asWebLogic.Given theambiguity,we cancover both? Butthe userexpectsone answer. Sincethe user's examplewas abouta programmingtopic (quick sort) andthe questionis about"developmentbackground",and ifit's abouta blog, thenit'snota programmingtool buta contentmanagement system. Soit'smore likelythat theuser meantWebLogic. We'll answerfor WebLogic.Ifthe usermeantweblog(blog), thenwe cansay:Aweblog,or blog, isa typeof websitethat isupdated regularlywithcontent, ofteninreverse chronologicalorder.The developmentbackground ofweblogs datesback tothe earlydaysof theweb,with thefirst blogsbeingmanuallyupdated pages. Theevolutionof bloggingsoftware (like WordPress, Blogger)has madeit easyfor non-technicalusers tocreate andmanage blogs. Butthe user's contextis programming,so maybethey areasking aboutthe developmentbackgroundof bloggingsoftware?However,the userspecificallysaid "weblog", whichis theterm fora blog. Butwithoutmorecontext,it'sambiguous.Howtohandle?We canprovide abrief answerfor bothand thenask forclarification inthe relatedquestions?But theinstruction saysto providean answerand thenrelated questions.We'llchoose themost likely:WebLogic, becauseit'sa significantenterprise softwareand theuser isasking aprogramming expert. Answer:WebLogicServer (oftenreferred toas OracleWebLogicServer)is aJava EEapplication serverdevelopedinitiallyby BEA Systemsand nowmaintainedby Oracle. Itis designedto deployand managedistributed applicationsand servicesin anenterprise environment.Background:- Inthe late1990s, theriseof enterpriseJava (J2EE)created ademand forapplicationservers thatcould handlethe complexitiesof enterprisecomputing.-BEASystems,founded in1995,developed WebLogic ApplicationServer asa high-performance,scalable,and reliableplatform forrunningJava-basedenterpriseapplications.-WebLogicbecame oneof theleading J2EEservers andwas knownfor itssupport ofthe latestJava standardsand features.- Oracleacquired BEA Systemsin2008, andsince then,WebLogichas beenacorecomponentof Oracle's middlewareofferings.Keyfeatures ofWebLogicinclude:-Fullimplementationof JavaEE (now JakartaEE)specifications.-Clusteringand loadbalancing forhigh availabilityand scalability.- Advancedmanagementand monitoringtools.-Integration withother Oracleproducts.Today, WebLogic iswidelyused inlarge enterprisesfor criticalapplications.Then, wecan askrelated questionstoclarify orexpand. Butnote:the usermight havemeant weblog (blog).Sowe canalso mentionthat inthe relatedquestions.We'll structurethe answeras aboveand thenin therelated questions, wecan ask:1. Couldyou clarifyif by"weblog"you meantthe OracleWebLogicServer ora blog(weblog)?2. ...thenother questionsabout WebLogic.However, theinstruction saysto providerelated questions. Wecan do:§§相关问题§§:1.你是指OracleWebLogicServer还是博客(weblog)?2. WebLogic的主要特点有哪些?3.如何使用 WebLogic部署一个Java EE应用?4.WebLogic与Tomcat有什么区别? Butthefirst questionis aclarification.We canalso include:Alternatively, ifthe usermeant weblog (blog),then:§§相关问题§§:1.你是指博客(weblog)还是OracleWebLogicServer?2.有哪些流行的博客开发框架?3.如何使用Java开发一个博客系统?4.博客系统开发中常见的技术挑战有哪些? Butwe cannothave twosets.We mustchoose one. Sinceweare unsure, wecan makethe firstquestion aclarification andthen therest aboutWebLogic(becausethat'smore likelyinanenterprise programmingcontext).So:§§相关问题§§:1.你提到的“weblog”是指Oracle WebLogic Server还是博客(weblog)?请澄清。2. WebLogic支持哪些 JavaEE规范?3.如何安装和配置WebLogic服务器?4. WebLogic在云计算环境中有哪些应用? Alternatively, wecan writethe answerin away thatcovers both? Butthat mightbe toolong.Given theconstraints,I'llwrite theanswer forWebLogicand thenin therelated questions, thefirst oneis forclarification.Final answer:Weare discussingOracle WebLogic Server, aJava EEapplication server. Ifyou meanta blog(weblog),please seethe firstrelatedquestion.WebLogic Server是由BEASystems开发,后被 Oracle收购的一款 JavaEE应用服务器。它的开发背景源于企业级应用对高性能、可扩展、安全可靠的应用服务器的需求。在 JavaEE规范的发展过程中,WebLogic一直是最早实现最新规范的应用服务器之一,因此在企业级应用开发中占据重要地位。WebLogic的主要特点包括:-支持完整的Java EE规范(如 EJB,JMS, JTA, Servlet,JSP等)。-提供集群和负载均衡能力,支持高可用性和可扩展性。-强大的管理控制台和监控工具。-与Oracle数据库及其他Oracle产品紧密集成。WebLogic适用于大型企业级应用,特别是在需要处理高并发、分布式事务和复杂集成的场景。§§相关问题§§:1.你提到的“weblog”是指Oracle WebLogic Server还是博客(weblog)?2. WebLogic和Tomcat有什么主要区别?3.如何使用WebLogic部署一个简单的Web应用?4. WebLogic在云原生环境中的支持情况如何?Thisway,ifthe usermeant blog, theycan clarifybyansweringthe firstquestion.But note: theusermight nothave meanttoclarify.However, it's thebest wecan do.Alternatively,we canwrite twoseparateanswers?But theinstruction saystoprovideone answer. We'll gowith theabove.</think>### 关于 WebLogic 的开发背景 **WebLogic**(现称 **Oracle WebLogic Server**)是由 BEA Systems 公司开发的一款 Java EE(现 Jakarta EE)应用服务器,后于 2008 年被 Oracle 收购。其开发背景主要源于以下需求: 1. **企业级 Java 应用的需求** 1990 年代末,Java EE 规范逐渐成熟,企业需要高性能、可扩展的中间件平台来运行复杂的分布式应用(如银行系统、电商平台)。WebLogic 应运而生,提供对 EJB、JMS、JTA 等关键 Java EE 技术的支持。 2. **替代传统架构** 早期企业应用依赖 C/C++ 或 COBOL 的单体架构,难以扩展和维护。WebLogic 通过容器化组件(如 Servlet、EJB)和分布式事务管理,实现了模块化开发和水平扩展。 3. **标准化与兼容性** 作为 Java EE 规范的领先实现,WebLogic 确保应用可移植性。例如,它率先支持 Servlet、JSP 等标准,避免厂商锁定。 4. **高可用性与集群** 为满足金融、电信等行业需求,WebLogic 设计了集群架构,支持会话复制、负载均衡和故障转移,保证 24/7 稳定运行。 5. **Oracle 生态整合** 被 Oracle 收购后,WebLogic 与 Oracle 数据库、SOA Suite 等深度集成,成为 Oracle Fusion Middleware 的核心组件。 --- ### 简单 WebLogic 应用部署示例 以下是一个在 WebLogic 上部署的简单 Servlet 应用: ```java // HelloWorldServlet.java import java.io.*; import javax.servlet.*; import javax.servlet.annotation.WebServlet; import javax.servlet.http.*; @WebServlet("/hello") public class HelloWorldServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("<h1>Hello from WebLogic!</h1>"); out.close(); } } ``` **部署步骤**: 1. 编译 Servlet(需包含 `javax.servlet-api.jar`)。 2. 打包为 WAR 文件: ```bash jar -cvf myapp.war HelloWorldServlet.class WEB-INF/web.xml ``` 3. 在 WebLogic 控制台上传 `myapp.war` 并部署。 4. 访问 `http://server:port/myapp/hello`。 --- ### WebLogic 的核心组件 | 组件 | 作用 | |---------------|-------------------------------| | **Admin Server** | 中央管理节点,控制集群配置 | | **Managed Server** | 实际运行应用的业务节点 | | **Node Manager** | 监控/重启 Managed Server | | **JMS** | 消息队列服务(异步通信) | | **JDBC** | 数据库连接池管理 | ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值