到目前为止,我只与工作室合作过。我有一个工作流程,在工作室(Windows)测试,我想把它放在一个独立的服务器(Linux)
所以我下载了EE standalone并安装了它,并可以从它运行控制台
./startup.sh
Please enter the desired port for Mule [Default 7777]:
Starting MMC, please wait...
[11-06 16:40:50] INFO AbstractBundlePersistenceManager [http-bio-8585-exec-11]: cachename=versionBundleCache[ConcurrentCache@3e585378], elements=30, usedmemorykb=5, maxmemorykb=8192, access=381, miss=30
[11-06 16:41:50] INFO AbstractBundlePersistenceManager [http-bio-8585-exec-11]: cachename=defaultBundleCache[ConcurrentCache@204bdc52], elements=175, usedmemorykb=345, maxmemorykb=8192, access=1270, miss=175
...
...
...
INFO 2014-11-06 16:47:50,832 [WrapperListener_start_runner] org.mule.module.launcher.MuleSharedDomainClassLoader: Using domain dir /ee/mmc-distribution-mule-console-bundle-3.5.2-HF1/mule-enterprise-3.5.2/domains/default for domain default
./startup.sh: line 135: 25780 Terminated tail -f logs/catalina.out (wd: /ee/mmc-distribution-mule-console-bundle-3.5.2-HF1/mmc-3.5.2-HF1/apache-tomcat-7.0.52)
./startup.sh: line 135: 26250 Terminated tail -f mule-enterprise-3.5.2/logs/mule_ee.log
Mule Started
Mule running as PID=27417
Tomcat and MMC running as PID=25801
Finished starting Mule and MMC. Please go to http://localhost:8585/mmc-3.5.2-HF1
[root@x240perf2 mmc-distribution-mule-console-bundle-3.5.2-HF1]#
..我可以显示状态:
./status.sh
MMC is running as PID=25801.
Mule Enterprise Edition is running as PID=27417.
我可以在以下浏览器地址显示控制台:http://x.x.x.x:8585/mmc-3.5.2-HF1/index.jsp#dashboard
所以现在我想部署一个应用程序(我在工作室中测试过的那个)。所以我使用以下链接作为指南:
http://www.mulesoft.org/documentation/display/current/Deploying+Mule+Applications
从那里开始说明:
Navigate to the folder that contains your copy of Mule ESB Standalone, then paste the application’s zip file into the apps folder.
所以我做了以下事情:
[root@x240perf2 apps]# pwd
/ee/mmc-distribution-mule-console-bundle-3.5.2-HF1/mule-enterprise-3.5.2/apps
[root@x240perf2 apps]#
[root@x240perf2 apps]# ls -la
total 16
drwxrwxrwx. 3 benchmarking games 4096 Nov 6 17:03 .
drwxrwxr-x. 14 benchmarking games 4096 Oct 23 16:10 ..
drwxrwxrwx. 2 benchmarking games 4096 Nov 6 14:44 default
-rw-r--r--. 1 root root 88 Nov 6 17:03 default-anchor.txt
[root@x240perf2 apps]#
[root@x240perf2 apps]# cp /home/app/dm.zip .
[root@x240perf2 apps]#
[root@x240perf2 apps]# ls -la
total 20
drwxrwxrwx. 4 benchmarking games 4096 Nov 6 17:04 .
drwxrwxr-x. 14 benchmarking games 4096 Oct 23 16:10 ..
drwxr-xr-x. 6 root root 4096 Nov 6 17:04 dm
drwxrwxrwx. 2 benchmarking games 4096 Nov 6 14:44 default
-rw-r--r--. 1 root root 88 Nov 6 17:03 default-anchor.txt
正如您所看到的,在将dm.zip文件复制到apps目录后,它被转换为目录
[root@x240perf2 dm]# ls
classes lib mule-app.properties mule-deploy.properties
docroot META-INF mule-config.xml portfolio_schema_to_port_schema.grf
[root@x240perf2 dm]#
但是,我找不到确认它正在运行。控制台的“部署”部分没有任何内容。
此外,文档说它是自动部署的(我猜这就是为什么它已解压缩到一个目录,但该应用程序不起作用,文档也说:
In the command line, Mule notifies you that it has deployed the application.
..并且文档以下面的例子为例:
**********************************************************************
* - - + APPLICATION + - - * - - + STATUS + - - *
**********************************************************************
* my_first_application * DEPLOYED *
* default * DEPLOYED *
**********************************************************************
INFO 2012-10-29 15:40:57,516 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Mule is up and kicking (every 5000ms) +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
那我该如何进入命令行呢?在我执行startup.sh之后,它最终停止并且说Mule正在运行。复制zip文件后,它会解压缩,但我不知道文档中引用了哪个命令行
这指的是什么命令行,我错过了什么?
如何解决此问题?
由于
答案 0 :(得分:1)
您可以在MULE_HOME / logs / mule_ee.log
中搜索日志文件答案 1 :(得分:0)
您所指的文档显示部署状态不在命令行中。 Mule将部署状态存储在日志文件mule_ee.log
中。打开日志文件以检查状态 - MULE_HOME/logs/mule_ee.log
。
注意:我使用的是最新版本Mule 3.8.0。