Weblogic815在Linux下的安装和配置
创建bea组和weblogic用户 使用root登录操作系统,执行下列命令创建bea组和weblogic用户。bea组号为600,weblogic用户号为600,属
一、安装:
创建bea组和weblogic用户
使用root登录操作系统,执行下列命令创建bea组和weblogic用户。bea组号为600,weblogic用户号为600,属于bea组,home目录为/bea。
# groupadd -g 600 bea
# useradd -d /bea -u 600 -g 600 weblogic
# passwd weblogic -- 激活weblogic用户
执行下列命令将/bea分配给weblogic用户。
# cd /
# chown weblogic:bea /bea
# chmod 755 /bea
§2.2.2 上传安装文件并执行
使用weblogic登录,使用bin模式,上传WebLogic安装文件server103_linux.bin到soft目录,执行下列命令执行安装文件。
$ cd /soft
$ chmod a+x server103_linux.bin
$ ./server103_linux.bin -mode=console
2.3.1 .bin的安装方法
首先赋予.bin可执行权限
chmod a+x filename.bin
然后执行
./filename.bin -mode=console
2.3.2 .jar的安装方法
然后执行
java -jar filename.jar -mode=console
2.4 控制台安装
2.4.1 完成2.3的步骤后,进入控制台安装的欢迎界面,键入[Next]继续
2.4.2 此时出现授权许可协议,读完后键入[Yes]继续
2.4.3 提示选择一个BEA主目录,如下所示
Choose BEA Home Directory:"BEA Home" = [/root/bea]Input new BEA Home OR [Exit][Previous][Next]>
如果想更改默认的BEA主目录,重新输入完整的目录路径即可,否则键入[Next]继续,如:/home/bea
2.4.4 确认BEA主目录
Choose BEA Home Directory: ->1| Yes, Use this BEA home directory [/home/bea] 2| No, return to BEA home directory selectionEnter index number to select OR [Exit][Previous][Next]>
键入[1]继续
2.4.5 选择安装类型
Choose Install Type: ->1|Complete Installation |Install the complete BEA WebLogic Platform. 2|Custom Installation |Choose software components to install and optionally create custom |application domains. Recommended for advanced users.
键入[1]继续
2.4.6 选择安装路径
Choose Product Directory:Product Installation Directory = [/home/bea/weblogicXX]Input new Product Installation Directory OR [Exit][Previous][Next]>
如果想更改默认的安装目录,重新输入完整的目录路径即可,否则键入[Next]继续
2.4.7 确认安装路径
Choose Product Directory: ->1| Yes, use this product directory [/home3/weblogicXX] 2| No, select another product directoryEnter index numbers to select OR [Exit][Previous][Next]>
键入[1]继续
2.4.8 现在开始安装,此时会出现一个模拟的进度条,耐心等待,直到100%安装顺利结束。
二、配置Configuration Wizard
软件安装完毕后,下一步配置Domain域,进入weblogic安装目录(例如:/home/bea/weblogic81/common/bin),找到文件config.sh,执行他#./config.sh;出现配置界面,选中“Create a new weblogic configuration”选项。
选择配置的模块为“Basic weblogic Domain”,然后单击快速配置“Express”,单击[Next]按钮
创建管理页用户名和密码(密码不少于8位),NEXT下一步;
该界面是所有配置信息的汇总确认,如果没问题,点击Create,开始创建DOMAIN域.
三、启动Weblogic
在启动Weblogic之前,可将服务用户名和密码写入启动脚本。
进入刚刚配置完成的域目录(例如:/home/bea/user_projects/domains/mydomain),编辑startWebLogic.sh启动脚本,执行$ vi startWebLogic.sh
在“WLS_USER= WLS_PW=”输入用户名和密码,保存退出;
最后执行$ ./startWebLogic.sh,启动Weblogic..
四、配置Weblogic连接池
通过:7001/console进入管理控制台
在左侧菜单中依次进入mydomain(自定义的域名称)-服务-JDBC-连接缓冲池
点击“配置新的 JDBC Connection Pool... ”
数据类型选择:Oracle
数据库驱动程序选择:Oracle's Driver (Thin) Version:9.0.1,0.2.0,10
点击右下角的“继续”
在名称中写入想要设置的连接池名称(本例为:myconnection1)--可以自己命名
数据库名称:要访问的数据库名称---必须是oracle的全局数据库名SID
主机名:写入数据库服务器的主机名称或IP地址(本例:192.168.1.251)
端口号默认为:1521
数据库用户名称、密码根据具体情况填写
点击“继续”
在下一页中点击“测试驱动程序配置”显示“连接成功”
点击“创建和部署”
在新页面的列表中出现myconnection1的配置项
连接池配置完毕
五、发布web应用
点击“Web Application Medules”,选择其中的“Deploy New Web Applocation Medules”,新建一个Application。
5。选择此WebServer的默认的目录:(注意:目录下含有WEB-INF目录,在WEB-INF目录下含有web.xml文件的文件夹才能设置成默认目录)。这里请点击DefaultWebApp前的单选框。然后点击“target modules”
如WEB_INF/applicationContext-resoure.xml有数据源配置,,datasource配置JINI名称须一致

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Full table scanning may be faster in MySQL than using indexes. Specific cases include: 1) the data volume is small; 2) when the query returns a large amount of data; 3) when the index column is not highly selective; 4) when the complex query. By analyzing query plans, optimizing indexes, avoiding over-index and regularly maintaining tables, you can make the best choices in practical applications.

InnoDB's full-text search capabilities are very powerful, which can significantly improve database query efficiency and ability to process large amounts of text data. 1) InnoDB implements full-text search through inverted indexing, supporting basic and advanced search queries. 2) Use MATCH and AGAINST keywords to search, support Boolean mode and phrase search. 3) Optimization methods include using word segmentation technology, periodic rebuilding of indexes and adjusting cache size to improve performance and accuracy.

Yes, MySQL can be installed on Windows 7, and although Microsoft has stopped supporting Windows 7, MySQL is still compatible with it. However, the following points should be noted during the installation process: Download the MySQL installer for Windows. Select the appropriate version of MySQL (community or enterprise). Select the appropriate installation directory and character set during the installation process. Set the root user password and keep it properly. Connect to the database for testing. Note the compatibility and security issues on Windows 7, and it is recommended to upgrade to a supported operating system.

The difference between clustered index and non-clustered index is: 1. Clustered index stores data rows in the index structure, which is suitable for querying by primary key and range. 2. The non-clustered index stores index key values and pointers to data rows, and is suitable for non-primary key column queries.

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

MySQL supports four index types: B-Tree, Hash, Full-text, and Spatial. 1.B-Tree index is suitable for equal value search, range query and sorting. 2. Hash index is suitable for equal value searches, but does not support range query and sorting. 3. Full-text index is used for full-text search and is suitable for processing large amounts of text data. 4. Spatial index is used for geospatial data query and is suitable for GIS applications.

In MySQL database, the relationship between the user and the database is defined by permissions and tables. The user has a username and password to access the database. Permissions are granted through the GRANT command, while the table is created by the CREATE TABLE command. To establish a relationship between a user and a database, you need to create a database, create a user, and then grant permissions.

MySQL and MariaDB can coexist, but need to be configured with caution. The key is to allocate different port numbers and data directories to each database, and adjust parameters such as memory allocation and cache size. Connection pooling, application configuration, and version differences also need to be considered and need to be carefully tested and planned to avoid pitfalls. Running two databases simultaneously can cause performance problems in situations where resources are limited.
