WebLogic安装Linux centos7

一、安装前准备工作:

1、创建用户useradd weblogic;创建用户成功linux系统会自动创建一个和用户名相同的分组,并将该用户分到改组中。并会在/home路径下创建一个和用户名相同的路径,比如我们创建的weblogic。

注:当然,你也可以通过groupadd -g GID groupname(GID代表创建组的ID,一般大于500),然后useradd –d userhome –g GID username(userhome 代表用户的主目录,GID 为前一步创建的组ID)创建用户并将用户分到相应的组里面。

2、卸载掉linux系统自带的jdk,安装我们自己的jdk,建议和开发过程中用到的jdk版本一致。

注:jdk的卸载和安装参见:http://www.linuxidc.com/Linux/2016-12/138043.htm。

二、开始安装:
a.?创建weblogic用户组.?

useradd weblogic
passwd weblogic

更改jdk版本

2、进入安装目录
#cd /home
#cp jdk-7u76-linux-x64.rpm /usr/local
#cd /usr/local
给所有用户添加可执行的权限

#rpm -ivh jdk-7u76-linux-x64.rpm

设置环境变量

#vi /etc/profile

打开后,在文档最下方加上以下环境变量配置代码:

export JAVA_HOME=/usr/java/jdk1.6.0_45
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH

 

执行生效

#. /etc/profile

weblogic用户

export JAVA_HOME=/usr/java/jdk1.6.0_45

export JAVA_BIN=/usr/java/jdk1.6.0_45/bin

export PATH=$PATH:$JAVA_HOME/bin

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME JAVA_BIN PATH CLASSPATH

注意:export PATH=$JAVA_HOME/bin:$PATH,注意将$PATH放到最后。以免造成新旧版本问题。
当你已经成功把jdk1.6.0_45 安装到 /usr/java,并且配置好了系统环境变量
执行 # java -version 时就是 显示jdk1.6.0_45,是因为你的linux系统有默认的jdk;执行
cp jdk-6u7-linux-i586.bin /usr
即将jdk复制到/usr目录下,然后进入/usr目录cd /usr

执行权限

chmod +x jdk-6u45-linux-x64.bin

执行安装命令

./jdk-6u45-linux-x64.bin

1、# cd /usr/bin

# ln -s -f /usr/java/jdk1.6.0_45/jre/bin/java

# ln -s -f /usr/java/jdk1.6.0_45/bin/javac

2、接着卸载jdk-1.7.0_76,再次重新安装。卸载方法:

先查看jdk-1.7.0_76包名

#rpm -qa | grep jdk


接着执行

#rpm -e jdk-1.7.0_76-fcs

卸载完后,再次重新安装jdk-7u76-linux-x64.rpm 。


1、进入安装路径:/home/weblogic

2、将安装文件wls1036_generic.jar放入安装目录

3、chmod a+x wls1036_generic.jar  赋予安装文件可执行的权限

4、执行安装命令:java -jar filename.jar -mode=console

注:如果安装文件是.bin格式的文件,安装命令为:./wls1036_generic.bin -mode=console;(你可以不加“-mode=console”的控制台文本模式,因为在你安装时无法启动图形安装界面时它会自动的进入文本控制台模式的)


5、控制台安装:

 

 

 

 

 

一、安装weblogic10.3.6 64位:

-bash-4.1$ java -jar wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.无法实例化 GUI,默认进入控制台模式。
Extracting 0%....................................................................................................100%

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0.
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

 
Enter [Exit][Next]> 回车

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default
"/bea/weblogic/Oracle/Middleware"]

 
Enter new Middleware Home OR [Exit][Previous][Next]> /bea/weblogic/

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/bea/weblogic]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/bea/weblogic/Oracle/Middleware]

 
Enter option number to select OR [Exit][Previous][Next]> 1

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/bea/weblogic]

 
Enter new Middleware Home OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    Warning

/bea/weblogic directory is not empty. Proceed with installation?

 
Enter [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

  1|Email:[]
  2|Support Password:[]
  3|Receive Security Update:[Yes]


Enter index number to select OR [Exit][Previous][Next]> 3

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

 

Enter [Yes][No]? no

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

 

Enter [Yes][No]? yes

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

  1|Email:[]
  2|Support Password:[]
  3|Receive Security Update:[No]

 

Enter index number to select OR [Exit][Previous][Next]>

 
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

  1|Email:[]
  2|Support Password:[]
  3|Receive Security Update:[No]

 

Enter index number to select OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

  2|Custom
    |  Choose software products and components to install and perform optional
    |configuration.

 

Enter index number to select OR [Exit][Previous][Next]> 2

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 10.3.6.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____WebLogic Web Server Plugins [1.9] x
    |    |_____UDDI and Xquery Support [1.10] x
    |    |_____Server Examples [1.11]
    |    |_____Evaluation Database [1.12] x
    |_____Oracle Coherence [2] x
        |_____Coherence Product Files [2.1] x
        |_____Coherence Examples [2.2]

    *Estimated size of installation: 690.2 MB

 
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 10.3.6.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____WebLogic Web Server Plugins [1.9] x
    |    |_____UDDI and Xquery Support [1.10] x
    |    |_____Server Examples [1.11]
    |    |_____Evaluation Database [1.12] x
    |_____Oracle Coherence [2]
        |_____Coherence Product Files [2.1]
        |_____Coherence Examples [2.2]

    *Estimated size of installation: 678.7 MB

 
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

  1|Add Local Jdk
  2|/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64[x]

 

  *Estimated size of installation:  678.7 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/bea/weblogic]

Product Installation Directories:


    "WebLogic Server" = [Enter new value or use default
"/bea/weblogic/wlserver_10.3"]

 
Enter new WebLogic Server OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
        |_____Core Application Server
        |_____Administration Console
        |_____Configuration Wizard and Upgrade Framework
        |_____Web 2.0 HTTP Pub-Sub Server
        |_____WebLogic SCA
        |_____WebLogic JDBC Drivers
        |_____Third Party JDBC Drivers
        |_____WebLogic Server Clients
        |_____WebLogic Web Server Plugins
        |_____UDDI and Xquery Support
        |_____Evaluation Database

    *Estimated size of installation: 678.8 MB

 
Enter [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions...

 
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Creating Domains...

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]>

 

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...

二、配置domains

cd /home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
-bash-4.1$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.


<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:
--------

Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory.

  2|Extend an existing WebLogic domain
    |    Use this option to add new components to an existing domain and modify    |configuration settings.


Enter index number to select OR [Exit][Next]> 1


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in
    |your domain.

  2|Choose custom template
    |    Choose this option if you want to use an existing  template. This
    |could be a custom created template using the Template Builder.


Enter index number to select OR [Exit][Previous][Next]> 1


<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
-------------------------------

 
    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]


Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |    Value    |
  _|________|_____________|
  1| *Name: | base_domain |


Enter value for "Name" OR [Exit][Previous][Next]> wlyxweb


<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |  Value  |
  _|________|_________|
  1| *Name: | wlyxweb |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes


Enter option number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

    "Target Location" = [Enter new value or use default
"/bea/weblogic/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]> /wlyx/webapp/domains


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name          |                  Value                  |
  _|_________________________|_________________________________________|
  1|        *Name:          |                weblogic                |
  2|    *User password:    |                                        |
  3| *Confirm user password: |                                        |
  4|      Description:      | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"


Enter option number to select OR [Exit][Previous][Next]> 2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    "*User password:" = []


Enter new *User password: OR [Exit][Reset][Accept]> welwlyx50


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name          |                  Value                  |
  _|_________________________|_________________________________________|
  1|        *Name:          |                weblogic                |
  2|    *User password:    |                *********                |
  3| *Confirm user password: |                                        |
  4|      Description:      | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> 3


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    "*Confirm user password:" = []


Enter new *Confirm user password: OR [Exit][Reset][Accept]> welwlyx50


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name          |                  Value                  |
  _|_________________________|_________________________________________|
  1|        *Name:          |                weblogic                |
  2|    *User password:    |                *********                |
  3| *Confirm user password: |                *********                |
  4|      Description:      | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes


Enter option number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.

 ->1|Development Mode

  2|Production Mode


Enter index number to select OR [Exit][Previous][Next]> 2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

 ->1|N/A SDK 1.6.0_24 @ /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
  2|Other Java SDK


Enter index number to select OR [Exit][Previous][Next]> 2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

    "JVM Directory" = []


Enter new JVM Directory OR [Exit][Previous][Next]> /bea/jdk/jdk1.6.0_37


<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

    "JVM Directory" = [/bea/jdk/jdk1.6.0_37]


Enter new JVM Directory OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

  1|Administration Server [ ]
  2|Managed Servers, Clusters and Machines [ ]
  3|RDBMS Security Store [ ]


Enter index number to select OR [Exit][Previous][Next]> 1


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

  1|Administration Server [x]
  2|Managed Servers, Clusters and Machines [ ]
  3|RDBMS Security Store [ ]

Enter index number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure the Administration Server:
------------------------------------

Each WebLogic Server domain must have one Administration Server. The
Administration Server is used to perform administrative tasks.

    |      Name      |        Value        |
  _|__________________|_____________________|
  1|      *Name:      |    AdminServer    |
  2| *Listen address: | All Local Addresses |
  3|  Listen port:  |        7001        |
  4| SSL listen port: |        N/A        |
  5|  SSL enabled:  |        false        |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"

Enter option number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****


四:weblogic的使用

1、启动服务时无需输入用户名和密码

进入到你新建的域中:cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer

然后在该文件夹下新建名为security的文件夹:mkdir security

在刚刚新建是文件夹中新建名为boot.properties文件:vi boot.properties

然后在该文件中输入:

username=weblogic

password=weblogc123

保存后退出。重启weblogic。此时你会发觉,weblogic再也不会提示要求你输入weblogic管理台的用户名和密码了。

重启后我们来到刚刚的新建的文件夹中查看新建的文件:
cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/security

vi boot.properties发现它的内容已经变成下面这个样子了:

#Sun Aug 04 10:23:54 CST 2013

password={AES}KWRQeICbIyJLO3zh+v+/9JeJtCzpK9ge6j4pqf9sSqA\=

username={AES}ICJVfwErXU5MOQyVPzcvVpKBkK6gI6UFlwqkkEuVgBg\=

Weblogic把它给加密了,因此只有装Weblogic的那个人即System Admin才真正知道Weblogic控制台的登录信息,这样就很安全了。

2、启动weblogic服务

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain

./startWeblogic.sh

nohup ./startWeblogic.sh &(nohup命令:如果你正在运行一个进程,而且你觉得在退出帐户时该进程还不会结束,那么可以使用nohup命令。
该命令可以在你退出帐户/关闭终端之后继续运行相应的进程。nohup就是不挂起的意思( no hang up))


找台服务器 启动浏览器 输入 http://10.85.31.242:7001/console

WebLogic 12c下配置节点管理器管理受管理服务器 http://www.linuxidc.com/Linux/2015-12/126788.htm

WebLogic重新设置管理员账号和口令 http://www.linuxidc.com/Linux/2015-08/121052.htm

CentOS 6.3安装配置Weblogic 10  http://www.linuxidc.com/Linux/2014-02/96918.htm

Oracle WebLogic 11g 安装部署文档 PDF http://www.linuxidc.com/Linux/2013-04/83658.htm

Linux部署Weblogic11g http://www.linuxidc.com/Linux/2013-01/77940.htm

Oracle基础教程之安装与配置Weblogic单实例 http://www.linuxidc.com/Linux/2012-02/54418.htm

Linux下Weblogic卸载 http://www.linuxidc.com/Linux/2012-01/51886.htm

Weblogic多机器集群的配置 http://www.linuxidc.com/Linux/2011-12/50577.htm

Weblogic的安装和配置 http://www.linuxidc.com/Linux/2011-12/49082.htm

更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12

本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-12/138044.htm

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/387723.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

jquery如何阻止子元素继承父元素的事件(又称事件冒泡)

非常简单&#xff0c;子元素上添加如下代码即可 1 $(a).click(function(e){ 2 e.stopPropagation(); 3 }); 老版本为event,现在用e就行 转载于:https://www.cnblogs.com/chengbo2130/p/10152747.html

java spring cloud 版 b2b2c 社交电商-服务消费者(Feign)

社交电商平台源码请加企鹅求求&#xff1a;一零三八七七四六二六。Feign是一个声明式的伪Http客户端&#xff0c;它使得写Http客户端变得更简单。使用Feign&#xff0c;只需要创建一个接口并注解。它具有可插拔的注解特性&#xff0c;可使用Feign 注解和JAX-RS注解。Feign支持可…

Mybaits自定义SQL

最近有个同事要包装一个可以执行sql语句的功能用的是mybatis 最开始他想到的方案是拿到数据库连接再执行sql语句。 后来出了某些错误来问我&#xff0c;为了寻求比较快的解决方法于是我就试试了下下面的方法。 首先在Mapper添加 <select id"select" resultMap&qu…

Beta 冲刺 (7/7)

团队信息 队名&#xff1a;爸爸饿了组长博客&#xff1a;here作业博客&#xff1a;here组员情况 组员1&#xff08;组长&#xff09;&#xff1a;王彬 过去两天完成了哪些任务 协助完成安卓端的整合完成安卓端的美化协助制作宣传视频 接下来的计划 & 还剩下哪些任务 I am d…

类的转换函数调用的优先级与是否用const修饰的关系

P415 C Primer Plus (第六版&#xff09;(待解决~~知道原理的同学请留言&#xff0c;多谢~~&#xff09; #include <iostream>using namespace std; class Cp{private:   int a;   double b;public:   Cp()   {     a 1;     b 2.2;   } operator in…

Java Web 学习与总结(一)Servlet基础

配置环境&#xff1a;https://www.cnblogs.com/qq965921539/p/9821374.html 简介&#xff1a; Servlet是Sun公司提供的一种实现动态网页的解决方案&#xff0c;在制定J2EE时引入它作为实现了基于Java语言的动态技术&#xff0c;目前流行的Web框架基本都基于Servlet技术&#xf…

堪称经典

程序员作为高智商、高收入、高压力群体&#xff0c;经常会有各种自嘲&#xff0c;而且还天生携带段子手基因。不信看看下面这些段子&#xff0c;一般人哪能懂&#xff01; 1、杀一个程序员不需要用枪&#xff0c;改三次需求就可以了 2、程序员退休后决定练习书法&#xff0c;于…

【洛谷 P1659】 [国家集训队]拉拉队排练(manacher)

题目链接 马拉车简单膜你 #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int MAXN 11000010; const int MOD 19930726; char b[MAXN], a[MAXN << 1]; int hw[MAXN << 1], ans 1, n, c[MAXN]; #defi…

Judy Beta 第三天

概述 前端部分对于打包的流程以及相关 package.json 的配置都已经比较熟悉了&#xff0c;目前主要负责对新实现的 feature 做测试&#xff0c;以及参考 DAP 为后端明确数据交换的格式及参数内容等。 后端部分按照更新的 wiki 实现了变量展开&#xff0c;并且根据 DAP 的协议流程…

oracle表空间不足

oracle表空间不足&#xff0c;一般有两个原因&#xff1a;一&#xff0c;原表空间太小&#xff0c;没有自增长&#xff1b;二&#xff0c;表空间已自增长&#xff0c;而且表空间也已足够大&#xff0c;对于这两种原因分别有各自的解决办法。 【检查原因】 1、查看表在那个表空…

python学习中遇到的问题

2019独角兽企业重金招聘Python工程师标准>>> def contract_str():index 8db_size 8new_table_name b_str(index & (db_size-1))print new_table_name ImportError: No module named mysql.connector import mysql.connector as sql_connector Python保存时提…

Arcgis 使用ArcToolbox实现数据统计

在ArcMap中打开ArcToolbox&#xff0c; ->Data Managerment Tools ->General ->Add你需要统计的所有数据转载于:https://www.cnblogs.com/CoffeeEddy/p/10161863.html

oracle分区索引及循环插入

表可以按range、hash、list分区&#xff0c;表分区后&#xff0c;其上的索引和普通表上的索引有所不同&#xff0c;oracle对于分区表上的索引分为2类&#xff0c;即局部索引和全局索引&#xff0c;下面分别对这2种索引的特点和局限性做个总结。 局部索引local index 1.局部索引…

classloader.getresources() 介绍

转载自&#xff1a; https://www.cnblogs.com/bhlsheji/p/4095699.html ◆普通情况下,我们都使用相对路径来获取资源,这种灵活性比較大. 比方当前类为com/bbebfe/Test.class 而图像资源比方sample.gif应该放置在com/bbebfe/sample.gif 而假设这些图像资源放置在icons文件夹下,则…

Anti-Aliasing SSAA MSAA MLAA SRAA 简介

http://blog.csdn.net/codeboycjy/article/details/6312758 前两天在浏览游民星空的时候&#xff0c;小编居然在文章中挂了一篇技术文章&#xff0c;是关于SRAA的。对于AA的了解很少&#xff0c;正好入职之前还有几天的空闲时间&#xff0c;所以就这个机会把AA的一些基本算法简…

MyBatis多数据源配置(读写分离)

MyBatis多数据源配置(读写分离) 首先说明&#xff0c;本文的配置使用的最直接的方式&#xff0c;实际用起来可能会很麻烦。 实际应用中可能存在多种结合的情况&#xff0c;你可以理解本文的含义&#xff0c;不要死板的使用。 多数据源的可能情况 1.主从 通常是MySQL一主多…

UI简单工作

UI用户界面 需求——效果图——风格设计——高保证效果——html 网页的宽度屏幕的宽度-纵向滚动条的宽度 企业网站一般是1280 根据百度流量研究所 目前我们的网页注主要是1024和1200 这样的宽度符合大体市场 首屏高度。 首屏的概念来源于出版领域 报纸折叠后贩卖&…

MySQL分库分表总结

MySQL分库分表总结&#xff1a; 单库单表 &#xff1a; 单库单表是最常见的数据库设计&#xff0c;例如&#xff0c;有一张用户(user)表放在数据库db中&#xff0c;所有的用户都可以在db库中的user表中查到。 单库多表 &#xff1a; 随着用户数量的增加&#xff0c;user表的数…

3章 RxJava操作符

本篇文章已授权微信公众号 YYGeeker 独家发布转载请标明出处 CSDN学院课程地址 RxJava2从入门到精通-初级篇:edu.csdn.net/course/deta…RxJava2从入门到精通-中级篇:edu.csdn.net/course/deta…RxJava2从入门到精通-进阶篇:edu.csdn.net/course/deta…RxJava2从入门到精通-源码…

virtualbox 使用

实现文件拖拽功能 1、设备 -- 安装增强功能 -- /bin/sh VboxLinuxaddition.run -- reboot 2、设备 -- 拖放 -- 双向 3、虚拟机 -- 设置 -- 存储 -- 控制器&#xff1a;SATA -- 勾选 使用主机输入输出&#xff08;I\O 缓存&#xff09; 4、虚拟机硬盘 -- 勾选固态驱动器 转载于…