1、安装上传下载工具
yum install lrzsz
2、安装开源jdk工具
yum install java-1.8.0-openjdk
3、建立安装目录
mkdir /usr/local/tongweb7041
4、确认字符集
[root@q1 ~]# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
二、安装东方通中间件7.0.4
[root@q1 opt]# bash Install_TW7.0.4.1_Enterprise_Liunx.bin Preparing to install Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program.
回车继续
[root@q1 opt]# bash Install_TW7.0.4.1_Enterprise_Liunx.bin Preparing to install Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... Launching installer... Graphical installers are not supported by the VM. The console mode will be used instead... =============================================================================== TongWeb7.0 Enterprise (created with InstallAnywhere) ------------------------------------------------------------------------------- Preparing CONSOLE Mode Installation... ... You guarantee not: 1. Transfer license of this system again. 2. Getting source codes of this system by altering, modifying, translating, reversing, anti-editing, anti-compiling or any other methods. PRESS <ENTER> TO CONTINUE:
回车继续
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 <ENTER> TO CONTINUE:
输入y,回车继续
... 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. 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
输入1,回车继续
... Please Choose a Java VM for Use by the Installed Application ->1- /usr/bin/java 2- Choose a Java VM already installed on this system ENTER THE NUMBER FOR THE JAVA VM, OR PRESS <ENTER> TO ACCEPT THE CURRENT SELECTION: 1
输入目录/usr/local/tongweb7041/,回车继续
============================================================================== Choose Install Folder --------------------- Where would you like to install? Default Install Folder: /root/TongWeb7.0 ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT : /usr/local/tongweb7041/
输入Y,回车继续
Choose Install Folder --------------------- Where would you like to install? Default Install Folder: /root/TongWeb7.0 ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT : /usr/local/tongweb7041/ INSTALL FOLDER IS: /usr/local/tongweb7041 IS THIS CORRECT? (Y/N): y
输入4,不建立超链接,回车继续
Choose Link Location -------------------- 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 <ENTER> TO ACCEPT THE DEFAULT : 4
回车继续
Pre-Installation Summary ------------------------ Please Review the Following Before Continuing: Product Name: TongWeb7.0 Enterprise Install Folder: /usr/local/tongweb7041 Link Folder: DO NOT INSTALL Disk Space Information (for Installation Target): Required: 426,151,923 Bytes Available: 187,659,722,752 Bytes PRESS <ENTER> TO CONTINUE:
端口默认,回车继续
Set Ports --------- Enter requested information tong-http-listener (Default: 8088): system-http-listener (Default: 9060): ejb-server-listener (Default: 5100): jmx-service (Default: 7200): shutdown-port (Default: 8005):
回车,完成安装
Installation Complete --------------------- Congratulations. TongWeb7 has been successfully installed to: /usr/local/tongweb7041 PRESS <ENTER> TO EXIT THE INSTALLER: [root@q1 opt]#
三、启动东方通中间件TongWeb
拷贝授权文件到安装目录(授权文件找官方申请)
cp license.dat /usr/local/tongweb7041/
对启动脚本授权
cd /usr/local/tongweb7041/bin/ chmod +x *.sh ./startservernohup.sh
查看监听端口
ss -ant [root@q1 bin]# ss -ant State Recv-Q Send-Q Local Address:Port Peer Address:Port Process LISTEN 0 128 0.0.0.0:22 0.0.0.0:* ESTAB 0 0 192.168.5.58:22 192.168.5.57:12681 ESTAB 0 36 192.168.5.58:22 192.168.5.57:12341 LISTEN 0 128 [::]:22 [::]:* LISTEN 0 100 *:8088 *:* LISTEN 0 50 *:7200 *:* LISTEN 0 100 *:9060 *:* LISTEN 0 50 *:39625 *:* LISTEN 0 100 *:5100 *:* ESTAB 0 0 [::ffff:192.168.5.58]:7200 [::ffff:192.168.5.58]:57374 ESTAB 0 0 [::ffff:192.168.5.58]:57374 [::ffff:192.168.5.58]:7200
防火墙放于8088及9060端口
firewall-cmd --add-port=8088/tcp --permanent firewall-cmd --add-port=9060/tcp --permanent firewall-cmd --reload
确认防火墙策略
[root@q1 bin]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: enaphyt4i0 sources: services: cockpit dhcpv6-client mdns ssh ports: 8088/tcp 9060/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:
四、java应用发布
4.1、登录东方通中间件的管理后台
http://192.168.5.58:9060/console/
点左边功能树中的”应用管理“,再点”部署应用“。
五、业务访问
打开浏览器,输入192.168.5.58:8080,即可看到程序显示的信息,第一行是helloworld,第二行用java语言打访问的url地址给打印到页面上了。
声明:欢迎大家光临本站,学习IT运维技术,转载本站内容,请注明内容出处”来源刘国华教育“。如若本站内容侵犯了原著者的合法权益,请联系我们进行处理。