localhost

JBoss AS 7 auto deploy plugin cannot connect to localhost:8080

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have configured the plugin in maven as shown below: <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.0.2.Final</version> <configuration> <hostname>localhost</hostname> <port>8080</port> <filename>target/TestApp.war</filename> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> I then trigger it using maven using mvn -U clean install package It does build and everything works fine but fails when it

window环境下zookeeper的安装(自用---仅供参考)

自作多情 提交于 2019-12-03 07:33:25
转自: https://www.cnblogs.com/ysw-go/p/11396343.html 第一部分:单机模式 1)下载地址:http://www.pirbot.com/mirrors/apache/zookeeper/,建议下载stable版本 2)解压缩 将下载好的压缩包解压到指定目录,比如:D:\software\apache-zookeeper-3.5.5-bin 3)环境变量配置 新增:ZOOKEEPER_HOME,变量值为zookeeper的安装目录,按照上图解压的话就是:D:\software\apache-zookeeper-3.5.5-bin path新增路径:$ZOOKEEPER_HOME\bin(启动脚本都在这个目录下) 4)修改配置文件 在conf目录下有一个名为zoo_sample.cfg的文件,改文件是启动zookeeper服务需要的配置,将改文件复制一份,新建一个命名为zoo.cfg的文件,里面涉及几个主要的配置。 #这个时间是作为 Zookeeper 服务器之间或客户端与服务器之间维持心跳的时间间隔,也就是每个 tickTime 时间就会发送一个心跳 tickTime=2000 initLimit=10 syncLimit=5 #顾名思义就是 Zookeeper 保存数据的目录,默认情况下,Zookeeper

MySQL用户管理及SQL语句详解

北慕城南 提交于 2019-12-03 07:28:01
1.1 MySQL用户管理 1.1.1 用户的定义 3306 [(none)]>select user,host from mysql.user; #查询用户和主机 +---------------+-----------+ | user | host | +---------------+-----------+ | root | 10.0.0.% | | mysql.session | localhost | | mysql.sys | localhost | | root | localhost | +---------------+-----------+ 4 rows in set (0.00 sec) 1.1.2 用户的作用 1、用户登录 TCP/IP方式(远程、本地): mysql -uroot -poldboy123 -h 10.0.0.51 -P3306 Socket方式(仅本地): mysql -uroot -poldboy123 -S /tmp/mysql.sock 用户名@'白名单' wordpress@'10.0.0.%' wordpress@'%' wordpress@'10.0.0.200' wordpress@'localhost' wordpress@'db02' wordpress@'10.0.0.5%' wordpress@'10.0.0.0

windows下安装mongoDB(zip版)

落花浮王杯 提交于 2019-12-03 06:59:52
windows下安装mongoDB(zip版) 下面说明如何在win10下用zip包安装好mongoDB数据库 首先要先从网上下载mongoDB的zip包 http://dl.mongodb.org/dl/win32/x86_64 可以从这里下载,我选的是最新的3.2版本,可以下载mis的,但要自己安装,这个安装教程网上有,另外也可以下载zip版本的,这里我用的是zip版本的,大概100多兆。 我准备将该数据库放于d盘,所以我在d盘下建立了mongoDB文件夹,在其下又分别建立了mongoDB文件夹和mongoDBdata文件夹,后者用来存放数据的 把刚才下载的zip包解压到d:\mongoDB\mongoDB, 可以看到如下目录 打开cmd。进入到bin目录下。 输入mongod.exe --dbpath D:\MonoDB\mongoDBdata回车 这里设置的是数据存放的位置,即刚才所建立的文件夹 回车后看到 mongoDB默认占用端口为27017 接着设置环境变量(虽然理论上可以不设,但是为了方便,还是设置了吧) D:\MongoDB\mongoDB\bin将该路径添加到环境变量path里 接着在cmd里输入以下语句: mongod -help 如果输出一大堆的帮助文档信息,证明设置成功 打开可以看到与刚到一样的界面 这样基本就算完成了 当然,我们可以利用help的信息

MongoError: failed to connect to server [localhost:27017] on first connect

青春壹個敷衍的年華 提交于 2019-12-03 06:58:04
问题 I have paid a membership and downloaded this project. After npm install and node app.js , it returns the following error: Does anyone know what's wrong? /Users/Thomas/Desktop/mean-stack-tutorial-01$ node app.js /Users/Thomas/Desktop/mean-stack-tutorial-01/node_modules/mongodb/lib/server.js:265 process.nextTick(function() { throw err; }) ^ MongoError: failed to connect to server [localhost:27017] on first connect at Pool.<anonymous> (/Users/Thomas/Desktop/mean-stack-tutorial-01/node_modules

docker 访问宿主机网络

核能气质少年 提交于 2019-12-03 06:39:38
使用宿主机IP 在安装Docker的时候,会在宿主机安装一个虚拟网关 docker0 ,我们可以使用宿主机在 docker0 上的IP地址来代替 localhost 。 首先,使用如下命令查询宿主机IP地址: ifconfig 可以发现宿主机的IP是 172.17.0.1 ,那么将 proxy_pass http://localhost:1234 改为 proxy_pass http://172.17.0.1:1234 就可以解决 502 Bad Gateway 错误。 但是,不同系统下宿主机的IP是不同的,例如Linux下一般是 172.17.0.1 , macOS下一般是 192.168.65.1 ,并且这个IP还可以更改。所以使用IP配置 nginx.conf ,不能跨环境通用。 使用host网络 Docker容器运行的时候有 host 、 bridge 、 none 三种网络可供配置。默认是 bridge ,即桥接网络,以桥接模式连接到宿主机; host 是宿主网络,即与宿主机共用网络; none 则表示无网络,容器将无法联网。 当容器使用 host 网络时,容器与宿主共用网络,这样就能在容器中访问宿主机网络,那么容器的 localhost 就是宿主机的 localhost 。 在docker中使用 --network host 来为容器配置 host 网络: docker

node工具之http-proxy-middleware

拥有回忆 提交于 2019-12-03 06:38:25
简介 一个轻松的配置代理服务器的中间件,让Node.js代理变得简单 url路径 foo://example.com:8042/over/there?name=ferret#nose \_/ \______________/\_________/ \_________/ \__/ | | | | | scheme authority path query fragment 基本使用 var express = require('express'); var proxy = require('http-proxy-middleware'); var app = express(); app.use( '/api', proxy({ target: 'http://www.example.org', changeOrigin: true }) ); app.listen(3000); 两种形式 var apiProxy = proxy('/api', { target: 'http://www.example.org' }); //同样效果 var apiProxy = proxy('http://www.example.org/api'); 配置 var options = { target: 'http://www.example.org', // 目标 changeOrigin:

Validate HTML on local machine

北城以北 提交于 2019-12-03 06:30:41
问题 I'm currently trying to learn HTML and Java EE Servlet programming. I have an application server running on my local machine (Orion Application Server) and I'm connecting to web pages I've deployed on this server using a browser running on the same machine, directed to http://localhost/mypage.htm (for example). I know W3C has a site you can go to that will validate an HTML page (and count how many errors are found for a given doctype), but that has to be a publicly available URL. How do you

Avoid Windows Firewall popup with sockets on localhost

断了今生、忘了曾经 提交于 2019-12-03 06:22:22
I have written a simple Java application that interacts with multiple instances of itself using sockets. The first instance automatically takes on the role of the server, listening on a specific port, and all subsequent instances connect to it. The problem I'm faced with is that Windows Firewall pops up asking me if I want to unblock the program from "accepting incoming network connections". The thing is: it doesn't matter if you leave the application blocked , because the instances of the application are always on the same machine, so it will always work. Can I inform Windows somehow that I

SQL Dialect is Not Configured (Phpstorm)

我与影子孤独终老i 提交于 2019-12-03 06:11:42
问题 Hi guys I am working on Google oauthorization2 and i encounter problem that "SQL dialect is not configured" so that's why my query is not executing and data is going to table Please Help me. Below I have listed Both Of Queries where i encounter problem! Tools : PhpStorm 8+ MySQL Localhost $user_exist = $mysqli->query("SELECT COUNT(google_id) as usercount FROM google_users WHERE google_id=$user_id")->fetch_object()->usercount; $mysqli->query("INSERT INTO google_users (google_id, google_name,