OS:centos mini6.4 ip:192.168.1.115
十年的蕪湖縣網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。全網(wǎng)整合營(yíng)銷(xiāo)推廣的優(yōu)勢(shì)是能夠根據(jù)用戶(hù)設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整蕪湖縣建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)從事“蕪湖縣網(wǎng)站設(shè)計(jì)”,“蕪湖縣網(wǎng)站推廣”以來(lái),每個(gè)客戶(hù)項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。首先還是安裝jdk,這里采用的是1.7
#####install java
rpm -ivh jdk-7u75-linux-x64.rpm
export 'JAVA_HOME=/usr/java/jdk1.7.0_75' >> /etc/profile.d/java.sh
export 'PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/java.sh
export 'CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar' >> /etc/profile.d/java.sh
. /etc/profile.d/java.sh
######verify java
java -version
######modify java arguement
vim /usr/java/jdk1.7.0_75/jre/lib/security/java.security
最初
securerandom.source=file:/dev/urandom
修改后
securerandom.source=file:/dev/./urandom
######create weblogic user
groupadd web
useradd -g web -m -d /home/weblogic weblogic
passwd weblogic --->redhat
chown -R weblogic:web /home/weblogic/
rz -y fmw_12.1.3.0.0_wls.jar
chmod 755 fmw_12.1.3.0.0_wls.jar
#########創(chuàng)建清單文件,以及組
echo '#Oracle Installer Location File Location' >> /etc/oraInst.loc
echo 'inst_group=web' >> /etc/oraInst.loc
echo 'inventory_loc=/home/weblogic/oraInventory' >> /etc/oraInst.loc
chmod 755 /etc/oraInst.loc
chown -R weblogic:web /etc/oraInst.loc
#####create rsp
[root@weblogic weblogic]# cat wls.rsp
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/home/weblogic/Oracle/Middleware ---》指定安裝的目錄路徑
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=
響應(yīng)文件具體可參考官方文檔
chmod 755 wls.rsp
chown -R weblogic:web /home/weblogic/
#######install weblogic
su - weblogic
cd /home/weblogic
java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /etc/oraInst.loc
至此安裝weblogic完成,下面開(kāi)始創(chuàng)建domain,也是靜默的方式,這里采用相對(duì)來(lái)說(shuō)兩種方式,看下面操作:
1、創(chuàng)建domain響應(yīng)文件,參照原始模板進(jìn)行創(chuàng)建
vim /home/weblogic/create_domain.rsp
read template from "/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar";
set JavaHome "/usr/java/jdk1.7.0_75";
set ServerStartMode "dev";
find Server "AdminServer" as AdminServer;
set AdminServer.ListenAddress "";
set AdminServer.ListenPort "7001";
set AdminServer.SSL.Enabled "true"; ---》當(dāng)然如果這里用不到可以不用設(shè)置
set AdminServer.SSL.ListenPort "8002";
//We can directly create a new managed server.
create Server "base" as BASE;
set BASE.ListenAddress "";
set BASE.ListenPort "8003";
//set BASE.SSL.Enabled "true";
//set BASE.SSL.ListenPort "8004″;
//Create Machine
create Machine "base" as Machinename;
//use templates default weblogic user
find User "weblogic" as u1;
set u1.password "weblogic123";
//create a new user
create User "weblogic2" as u2;
set u2.password "weblogic123";
write domain to "/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/";
// The domain name will be "demo-domain"
close template;
創(chuàng)建響應(yīng)文件完成,即開(kāi)始創(chuàng)建domain
可以看見(jiàn)base_domain已經(jīng)創(chuàng)建成功,現(xiàn)在需要開(kāi)啟服務(wù),但是報(bào)錯(cuò)如下
我以為創(chuàng)建的domain有問(wèn)題,于是采用第二種方式創(chuàng)建domain
2、采用的是wlst-tool這個(gè)工具
這樣的方式就不用創(chuàng)建文件,這兩周方式都可以創(chuàng)建domain
創(chuàng)建domain完成后,于是啟動(dòng)服務(wù),但依然報(bào)相同的錯(cuò)誤
于是推翻了上面創(chuàng)建domain有問(wèn)題的結(jié)論,開(kāi)始google查找這個(gè)錯(cuò)誤的原因
解決辦法:
編輯weblogic用戶(hù)的環(huán)境變量如下:vim /home/weblogic/.bash_profile
PATH=$PATH:$HOME/bin
export CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom"
export WL_HOME=/home/weblogic/Oracle/Middleware/wlserver
export MW_HOME=/home/weblogic/Oracle/Middleware/
export PATH
然后再次啟動(dòng)服務(wù),不再報(bào)錯(cuò)
于是查看瀏覽器:
于是基于weblogic 12c的12.1.3.0版本搭建成功
oracle:http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm
If CentOS has already been installed without a graphical interface,
you can install this with the following commands:
$ yum groupinstall "X Window System" "Desktop" "Desktop Platform"
$ yum install gdm
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性?xún)r(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專(zhuān)為企業(yè)上云打造定制,能夠滿(mǎn)足用戶(hù)豐富、多元化的應(yīng)用場(chǎng)景需求。