首页 \ 问答 \ tomcat怎么配置JNDI连接

tomcat怎么配置JNDI连接

网上有好多方法,有的改server.xml 有的改context.xml 我看了个大概,迷糊的很 具体有哪几种配置连接的方法呢? 和服务器的类型有关系吗?比如tomcat5和tomcat6的连接有区别么? 还有如果是修改context.xml有修改tomcat/conf目录下的,也有为web项目METE-INF下添加的;这2种都可以吗?有什么区别?
更新时间:2021-11-03 06:11

最满意答案

修改ip有两种:
1、用命令来修改ip地址ifconfig+ip地址,不同linux可能有所不同
2、修改配置文件/etc/sysconfig/network-script/ifcfg-网卡名

其他回答

linux下查看ip地址,ifconfig
临时修改,也可以使用ifconfig
例如
ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up
不过这样修改不会保存
如果需要保存,一般直接修改配置文件
比如centos下,一般在
/etc/sysconfig/network-scripts/ifcfg-eth0

相关问答

更多
  • 方法/步骤 1、使用root用户登录进入linux,打开进去终端 2、在终端中输入:vi /etc/sysconfig/network-scripts/ifcfg-eth0 3、回车后, 开始编辑,填写ip地址、子网掩码、网关、DNS等。其中“红框内的信息”是必须得有的。 4、编辑完成后,保存退出 重启网络服务 service network restart或/etc/init.d/network restart 然后ping网关,ping外网进行测试。都能ping通表示网络正常 5、详细摘要: ---修改 ...
  • 修改IP的方法很多,介绍几种: 1. ifconfig 命令行直接跟IP地址就行,但是这个是临时的,重启服务器就没了; 2. setup 命令行输入setup 选择网络设置可以设置IP、网关、掩码等信息; 3. 修改配置文件/etc/sysconfig/network-scripts/ifcfg-eth*文件设置某个网卡的信息 4. 可以通过图形界面设置; 不详细说了,百度下很多的
  • 可以使用ifconfig命令。ifconfig是linux中用于显示或配置网络设备(网络接口卡)的命令,英文全称是network interfaces configuring。它能够显示网卡的IP地址、子网掩码、广播地址、硬件地址等信息。 用法示例: 查看网卡eth0的mac地址 $ ifconfig eth0 mac地址位于上图中的红色方框处。
  • 1、首先打开linux操作系统在进入到界面 2、在桌面右击打开终端 3、在终端里输入ifconfig -a命令在回车键
  • 1、命令行使用vi编辑器打开网卡配置文件ifcfg-eth0: vi /etc/sysconfig/network-scripts/ifcfg-eth0 2、开始编辑,填写ip地址、子网掩码、网关、DNS等。其中“红框内的信息”是必须得有的。 3、编辑完后,保存退出。 4、重启网络服务。service network restart或/etc/init.d/network restart 5、ping网关,ping外网进行测试。都能ping通表示网络正常。
  • 1、使用root用户登录进入linux,打开进去终端 2、在终端中输入:vi /etc/sysconfig/network-scripts/ifcfg-eth0 3、回车后, 开始编辑,填写ip地址、子网掩码、网关、DNS等。其中“红框内的信息”是必须得有的。 4、编辑完成后,保存退出 重启网络服务 service network restart或/etc/init.d/network restart 然后ping网关,ping外网进行测试。都能ping通表示网络正常 5、详细摘要: ---修改ip地址-- ...
  • 修改ip有两种: 1、用命令来修改ip地址ifconfig+ip地址,不同linux可能有所不同 2、修改配置文件/etc/sysconfig/network-script/ifcfg-网卡名
  • Linux-如何修改IP[2022-04-28]

    ifconfig linux中对网卡进行编辑的命令. 无论是Linux 自动安装还是我们手工安装,Linux 都会向你询问有关网络的问题并配置相关的软件。这个用于配置网卡的基本命令就是ifconfig。 在执行ifconfig 命令后,系统将在内核表中设置必要的参数,这样Linux 就知道如何与网络上的网卡通信。ifconfig 命令有以下两种格式: ※ifconfig [interface] ※ifconfig interface [aftype] option | address … ifco ...
  • Linux-如何修改IP[2022-06-17]

    ifconfig linux中对网卡进行编辑的命令. 无论是Linux 自动安装还是我们手工安装,Linux 都会向你询问有关网络的问题并配置相关的软件。这个用于配置网卡的基本命令就是ifconfig。 在执行ifconfig 命令后,系统将在内核表中设置必要的参数,这样Linux 就知道如何与网络上的网卡通信。ifconfig 命令有以下两种格式: ※ifconfig [interface] ※ifconfig interface [aftype] option | address … ifconfig ...
  • 第1步:首先咱们要切换到"/etc/sysconfig/network-scripts"目录中(该目录存放着网卡的配置文件)。 第2步:使用vim编辑器修改网卡文件"ifcfg-eno16777736",逐项写入配置参数,并保存退出。 设备类型:TYPE=Ethernet 地址分配模式:BOOTPROTO=static 网卡名称:NAME=eno16777736 是否启动:ONBOOT=yes IP地址:IPADDR=192.168.10.10 子网掩码:NETMASK=255.255.255.0 网关地址 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)