localhost

Public key authentication issues on cygwin

三世轮回 提交于 2019-12-04 03:18:20
I've been trying "ssh localhost" on cygwin (I use WIndows 7), but it keeps asking for the password. When I did "ssh -vvv localhost", I found out that the public key authentications were not happening (or failing). Hence, it was asking for the password. debug1: Authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is

STF框架之minicap工具

天大地大妈咪最大 提交于 2019-12-04 03:04:33
stf minicap minicap介绍 从 WEB 端批量移动设备管理控制工具 STF 的环境搭建和运行 文章了解到STF这个工具,然后试用了一下。最近在做一个测试工具,发现Android原生的截图工具截图非常缓慢,然后想起了stf工具中截图非常快,甚至连执行monkey的动作都能在web端查看,这就很爽了,所以在github上提了一个 Issue ,询问这个是如何实现的,很快得到答复,stf自己写了一个工具叫minicap用来替代原生的screencap,这个工具是stf框架的依赖工具。 minicap使用 minicap工具是用NDK开发的,属于Android的底层开发,该工具分为两个部分,一个是动态连接库.so文件,一个是minicap可执行文件。但不是通用的,因为CPU架构的不同分为不同的版本文件,STF提供的minicap文件根据CPU 的ABI分为如下4种: . ├── bin │ ├── arm64-v8a │ │ ├── minicap │ │ └── minicap-nopie │ ├── armeabi-v7a │ │ ├── minicap │ │ └── minicap-nopie │ ├── x86 │ │ ├── minicap │ │ └── minicap-nopie │ └── x86_64 │ ├── minicap │ └──

PHP/Apache crashing on script (Segmentation fault (11)

可紊 提交于 2019-12-04 03:03:22
[SOLVED] I'm running a PHP script (with some includes) on localhost that keeps crashing before the end. Error reporting is on. Opera, Safari and Firefox return an empty screen. But Chrome returns: Unable to load the webpage because the server sent no data. Error code: ERR_EMPTY_RESPONSE Apache logs returns: [Sun Dec 15 19:29:23 2013] [notice] child pid 34267 exit signal Segmentation fault (11) Was using PHP 5.5.6 when I encountered the problem for the first time After downgrading to PHP 5.4.21 the problem still exists. The problem is not inside the script. Randomly commenting out a couple of

Setting up a Host File - Faking URLs

此生再无相见时 提交于 2019-12-04 02:47:15
I'm trying to set up my development instances so that I can fake some urls that I own. My website has a number of url's and depending on the one you visit my site will act differently based on the domain.. ive edited my C:\WINDOWS\system32\drivers\etc\hosts File to contain something like below 127.0.0.1 localhost 127.0.0.1 SomeDomain.com 127.0.0.1 MyDomain.com Now if I visit localhost everything works fine but when i try visit SomeDomain.com or MyDomain.com it produces couple different messages depending on browsers Firefox - "Bad Request (Invalid Hostname)" Chrome - Asked for a username

【转】Zuul高级配置(zuul--2)

这一生的挚爱 提交于 2019-12-04 02:40:52
转自: https://blog.csdn.net/pengjunlee/article/details/87162192 自定义路由规则 在《API Gateway 的路由和过滤(Zuul)》一章中,我们并未对Zuul的路由规则进行设置,默认会使用服务的 ID 对服务进行路由,即:在源服务的URI之前增加 /service-id 前缀。 # Zuul 默认路由地址 http://<zuul-host>:<zuul-port>/service-id/[service-URI] 除了可以直接使用默认的路由规则外,Zuul还提供了很多配置项允许我们对路由映射规则进行自定义,例如: zuul: ignoredServices: '*' routes: message-service: /zuul-msg/** 示例中这个配置的作用是:忽略除 message-service 外的所有服务(不对它们进行路由),只将message-service 服务路由到 /zuul-msg/** 地址上。 zuul.ignored-services # 忽略指定微服务,多个微服务之间使用逗号分隔 zuul.routes.service-id # 指定service-id服务的路由地址 注意:在 zuul.routes 中配置了的服务,即使被包含在 zuul.ignored-services

kafka集群部署

此生再无相见时 提交于 2019-12-04 02:34:42
虽然kafka集群部署的文章网络的到处都是,但是还是想把自己亲自操作的过程记录一下,同时也可以记录一下遇到的问题,避免以后部署的时候再遇到。 一、安装 1、下载,地址: https://www.apache.org/dyn/closer.cgi?path=/kafka/2.3.0/kafka_2.12-2.3.0.tgz 2、解压 1 tar xzvf kafka_2.12.3.0.tgz 2 cd kafka_2.12.3.0 二、启动服务 kafka依赖zookeeper,如果本身没有已经启动的zookeeper集群的话,kafka的安装包中已经内置了一个脚本来启动一个单节点的zookeeper实例,我的机器没有zookeeper,所以需要先启动一个zookeeper实例,启动命令: bin/zookeeper-server-start. sh -daemon config/zookeeper.properties 然后启动kafka,启动命令: bin/kafka-server-start. sh -daemon config/server.properties 执行过命令后发现启动失败了,看日志发现没有Java命令,才想起来自己的电脑没有安装Java,于是安装下Java,centos的系统,安装命令: yum install java- 1.8 . 0 -openjdk 三

Setting localhost alias in IIS Express for Visual Studio

独自空忆成欢 提交于 2019-12-04 02:29:56
I'm trying to define an alias to localhost in development ambient in Visual Studio 2013. When I used previous versions of Visual Studio, I used the Visual Studio Development Server to debug and the only thing I needed to do was to change my hosts file adding this entry: 127.0.0.1 localhost 127.0.0.1 localhostalias I'm having problems to do this with VS2013. I've browsed all over the internet and I've tried the following things, but I'd like someone of you to tell me what am I doing wrong. I've obviously already changed the hosts file... In the web project Properties -> Web in the section

Access Tomcat localhost:8080 of guest VirtualBox VM from Host OS

岁酱吖の 提交于 2019-12-04 02:26:05
I have an XP laptop on which I am running an Ubuntu distro inside VirtualBox which is running a website via Tomcat. When I am in the VM I can access the site with localhost:8080/ What I really need to do, though, is to access the VM localhost from XP. vm-computer-name:8080/ isn't recognized. Any help is much appreciated. Get the IP Address of your guest OS and access it via that. Setup your VM to run a host-only network, then reboot or restart networking to update DHCP. The IP address on the guest will now be accessible from the host. You can also use bridged network mode, but that won't work

tomcat 日志详解

瘦欲@ 提交于 2019-12-04 02:12:40
1 tomcat 日志详解 1.1 tomcat 日志配置文件    tomcat 对应日志的配置文件 :tomcat目录下的/conf/logging.properties。    tomcat 的日志等级有: 日志输出级别:SEVERE (最高级别) > WARNING > INFO > CONFIG > FINE > FINER(精心) > FINEST (所有内容,最低级别)    tomcat 有五类日志 : catalina、localhost、manager、admin、host-manager   /conf/logging.properties 配置文件: 1 #可配置项(5类日志):catalina、localhost、manager、admin、host-manager 2 handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler 4 5 #日志输出为输出到文件和输出到控制台 6 .handlers =

Subdomains and locally installed Rails app

a 夏天 提交于 2019-12-04 01:59:58
I can't figure out what I'm overlooking, perhaps it's obvious or lack of understanding. The app I'm working with uses subdomains which on the hosting server work properly. I figured locally installing would kick up some issues around routing, so I read up on making changes to /etc/hosts and using the Ghost gem. Both seem to work fine i.e. localhost:3000/ becomes myapp.local:3000 but I don't understand how to go about logging into a subdomain account. Here's an example... myapp.local:3000/session/new = the default login page for the app myapp.local:3000/signup = default signup page I can create