以.tar.gz结尾的安装包
1.1. 将包放置需要安装的路径下
例:将tongweb安装至/opt目录下,
mv TW_7044_P1_Enter_Liunx.tar.gz /opt
1.2. 解压压缩包
tar -xvf TW_7044_P1_Enter_Liunx.tar.gz
1.3. 修改文件名
mv TW_7044_P1_Enter_Liunx.tar.gz tongweb7044P1
1.4. 放置授权文件
将授权文件license.dat文件放到目录下,
mv license.dat /opt/tongweb7044P1/
1.5. 启动
cd /opt/tongweb7044P1/bin ==>第一步,进入目录内
./startservernohup.sh ==>第二步,启动脚本
tail -f ../logs/server.log ==>查看实时启动日志
[TongWeb server startup complete in xxxxxx ms.] ==>出现以下信息说明tongweb控制台启动完成
1.6. 停止
1.6.1. 方法一:
cd /opt/tongweb7044P1/bin ==>第一步,进入目录内
./stopserver.sh ==>启动停止脚本,需要会时间停止,有可能几秒有可能几分钟
1.6.2. 方法二:
ps -ef|grep java ==>找到东方通的线程
Kill -9 pid ==>杀死线程
以bin结尾的安装包
Linux 平台图形界面安装,直接执行安装程序,过程如下:
2.1. 运行sh Install_TW7..._.bin -i console,出现如下信息:
[root@Config123VM0 mengal]# sh Install_TW7...*_Standard_Linux.bin -i
console
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
Preparing CONSOLE Mode Installation...
==
Choose Locale...
1- English
->2- 中文简体23
CHOOSE LOCALE BY NUMBER: 1
2.2. 出现如上信息的后,选择安装界面语言,进入下图:(注:如果当前平台编码 LANG
不为 zh_CN.UTF-8)
==
TongWeb7.0 Standard (created with InstallAnywhere)
--
==
License Agreement
Installation and Use of TongWeb7 Requires Acceptance of the Following
License
Agreement:
End user license agreement for Tongtech co., LTD software
The End user license agreement will be accompanied with the products
and
related documents of Tongtech co., LTD. Please read it carefully. You
will
be asked to accept this license and continue the installation. If you do
not accept this license, you should refuse it and quit the installation.
Grant of license:
Tongtech co., LTD grants you the license to use the software program,
but you
must make such assurance as following to our company: Do not
use、copy、modify、rent or convey this system besides the terms listed in
this
license and the formal contact signed with Tongtech co., LTD.
You guarantee:
Using this software only on a single computer;
For the purpose of backup or archival management for the use on one
computer, making copy of this system by machine-reading format.
You guarantee not:
Transfer license of this system again.
Getting source codes of this system by altering, modifying, 24
translating,
reversing, anti-editing, anti-compiling or any other methods.
PRESS TO CONTINUE:
2.3. 出现如上信息后,按回车键继续安装。
Copy or transfer this software in whole or in part.
When you transfer this software in part or in whole to any third part,
your
right to use the software shall terminate immediately and without notice.
The copyright and ownership of this software:
The copyright of this software is owned by Tongtech co., LTD. The
structures,
tissues and codes are the most valuable commercial secrets of Tongtech co.,
LTD. This software and documents are protected by national copyright laws
and
international treaty provisions. You are not allowed to delete the
copyright
notice from this software. You must agree to prohibit any kind of illegal
copy
of this software and documents.
Limited warranty:
In the largest permitting area of the law, In no situation shall Tongtech
co., LTD be liable for any special, unexpected, direct or indirect damages
(including, without limitation, damages for loss of business profits,
business
interruption, loss of business information, or any other pecuniary loss)
arising out of the use of or inability to use this product and the
providing or
inability to provide supporting services, even if Tongtech co., LTD has
been
advised of the possibility of such damages.
PRESS TO CONTINUE:
2.4. 出现如上信息后,按回车键继续安装。
Termination:
Tongtech co., LTD may terminate the license at any time if you violate any
term or condition of the license. When the license is terminated, you must
destroy all copies of the software and all of its documents immediately, or
return them to Tongtech co., LTD.25
Law:
"Intelligent Property Protection Regulation", "Copyright Law", "Exclusive
Law"
Now, you must have already carefully read and understand this license, and
agreed to obey all the terms and conditions strictly.
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y
2.5. 出现如上信息后,请选择是否接受许可条款,若接受请输入 y。进入选择 Java VM,
默认为当前系统正在使用 Java VM。(注意,只有 windows、linux 和 aix 才自带 JDK,
其它平台不带。)
==
Choose Java Virtual Machine
Please Choose a Java VM for Use by the Installed Application
->1- /usr/java/jdk1.8.0_144/bin/java //当前系统正使用的 JDK
2- /usr/bin/java
3- Choose a Java VM already installed on this system//使用其它 JDK
ENTER THE NUMBER FOR THE JAVA VM, OR PRESS TO ACCEPT THE
CURRENT SELECTION: 3
ENTER THE ABSOLUTE PATH TO THE JAVA VM EXECUTABLE OF YOUR CHOICE
: /home/tong/jdk/jdk1.7.0_67/bin/java
PATH TO THE JAVA EXECUTABLE IS:
/home/tong/jdk/jdk1.7.0_67/bin/java
IS THIS CORRECT? (Y/N): y
2.6. 完成上面步骤后,按回车,进入选择安装路径。
==
Choose Install Folder
Where would you like to install?
Default Install Folder: /root/TongWeb7.0
ENTER AN ABSOLUTE PATH, OR PRESS TO ACCEPT THE DEFAULT
:
2.7. 出现如上信息后,请输入安装路径,若同意使用给出的默认安装路径,请按回车键继
续安装。
==
Choose Link Location26
Where would you like to create links?
->1- Default: /root
2- In your home folder
3- Choose another location...
4- Don't create links
ENTER THE NUMBER OF AN OPTION ABOVE, OR PRESS TO ACCEPT THE DEFAULT
:
2.8. 出现如上信息后,请输入链接选项,选择后,按回车键继续安装。
==
Pre-Installation Summary
Please Review the Following Before Continuing:
Product Name:
TongWeb7 Standard
Install Folder:
/root/TongWeb7.0
Link Folder:
/root
Disk Space Information (for Installation Target):
Required: 107,191,640 bytes
Available: 230,416,384 bytes
PRESS TO CONTINUE:
2.9. 出现如上信息后,请确认预安装信息是否正确,若正确请按回车键继续安装。
==
Installing...
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]27
2.10. 安装完成后,进入端口修改界面,缺省值为默认端口。
=
Set Ports
tong-http-listener (DEFAULT: 8088): 8089
system-http-listener (DEFAULT: 9060): 9061
ejb-server-listener (DEFAULT:5100): 5100
jms-service (DEFAULT:7200): 7201
shutdown-port (DEFAULT:8005): 8005
2.11. 输入端口后,按回车键结束安装。 到此安装完毕。
Installation Complete
Congratulations. TongWeb7 has been successfully installed to:
/root/TongWeb7.0
PRESS TO EXIT THE INSTALLER
3. 以zip结尾的安装包
3.1. 将包放置需要安装的路径下
3.2. 例:将tongweb安装至/opt目录下, mv 2021-09.zip /opt
3.3. 解压压缩包
unzip 2021-09.zip
4. 注意
若系统没有自带jdk,则还需要安装jdk,支持JDK 1.7 以上(支持 OpenJDK)
4.1. 用户上传jdk
4.2. 安装jdk
4.3. 配置jdk
vi /etc/profile ==>在文本末添加
export JAVA_HOME=xxxxxxxx(xxxxxxxx为jdk的安装根目录路径)
export PATH=JAVAHOME/bin:JAVA HOME/bin:PATH
保存配置后:
source /etc/profile