host

访问服务器D盘目录文件设置

ε祈祈猫儿з 提交于 2019-12-31 09:08:45
访问服务器D盘目录文件设置如下: 需要在 Tomcat 的目录conf文件中找到 server.xml 中 <Host></Host> 标签中加入下面这行代码: <Context path="/Img 访问路径 " docBase="D:\ 文件路径 "reloadable="true"/> 在 IDEA 中 这样就可以访问了。 来源: CSDN 作者: lilintong 链接: https://blog.csdn.net/lilintong/article/details/103773904

Hostname not resolving to local IP address

对着背影说爱祢 提交于 2019-12-31 03:42:08
问题 I am running a Windows 8 VM inside of vmware Fusion. It runs inside a Mac running OSX 10.10 (Yosemite). The VM has a computer name of "Proud". When I ping the VM from within itself, i.e. ping -a 192.168.0.138 I get a response like: Pinging Proud [192.168.0.138] with 32 bytes of data: Reply from 192.168.0.138: bytes=32 time<1ms TTL=128 However whenever I ping Proud from Yosemite, i.e. ping Proud I get a response like: PING proud (199.101.28.130): 56 data bytes 64 bytes from 199.101.28.130:

评分星星控件

有些话、适合烂在心里 提交于 2019-12-31 02:28:40
<head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <style> /*大星星 start*/ .bigStarBox{ position:relative; display:inline-block; *display:inline; *zoom:1; float:left; width:100px; cursor:pointer; } .bigStarBox span{ cursor:pointer; display: inline-block; *display:inline; *zoom:1; width:18px; height:18px; background:url(http://images.cnblogs.com/cnblogs_com/ecalf/431722/o_start_big_2.gif) no-repeat -36px center; margin-right:2px; } .bigStarBox .selected{ background-position:left center; } .bigStarBox .halfStar{ background-position:-18px center; } .bigStarBox .valueLabel{

nginx缓存模块配置总结proxy_cache(未完)

[亡魂溺海] 提交于 2019-12-31 01:16:52
简介:此缓存设置用到了第三方模块purge,使用的时候就在源链接和访问的具体内容之间加入关键字"/purge/"即可。 如:访问http://192.168.0.1/a.png 会生成a.png的缓存文件; 只要通过http://192.168.0.1/purge/a.png就可以将生成的缓存清除掉了。 一、获取安装包 获取安装包: wget http://nginx.org/download/nginx-1.7.9.tar.gz 获取缓存清理模块: wget http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz 二、安装nginx [root@HOST]# tar -xvzf nginx-1.7.9.tar.gz [root@HOST]# tar -zxvf ngx_cache_purge-2.3.tar.gz [root@HOST]# cd nginx-1.7.9 [root@HOST]# ./configure --prefix=/usr/local/nginx \ --add-module=../ngx_cache_purge-2.3 [root@HOST]# make[root@HOST]# make install 三、配置nginx(主要添加加粗字体部分) [root@HOST]cd /usr/local

Netty入门

限于喜欢 提交于 2019-12-31 00:44:08
1.Netty介绍 (1)百度百科介绍: Netty是由JBOSS提供的一个java开源框架。Netty提供异步的、事件驱动的网络应用程序框架和工具,用以快速开发高性能、高可靠性的网络服务器和客户端程序。 也就是说,Netty 是一个基于NIO的客户、服务器端编程框架,使用Netty 可以确保你快速和简单的开发出一个网络应用,例如实现了某种协议的客户、服务端应用。Netty相当于简化和流线化了网络应用的编程开发过程,例如:基于TCP和UDP的socket服务开发。 “快速”和“简单”并不用产生维护性或性能上的问题。Netty 是一个吸收了多种协议(包括FTP、SMTP、HTTP等各种二进制文本协议)的实现经验,并经过相当精心设计的项目。最终,Netty 成功的找到了一种方式,在保证易于开发的同时还保证了其应用的性能,稳定性和伸缩性。 (2)官网介绍:netty.io Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. (3)参考资料: 参考书籍:Netty实战(Norman Maurer & Marvin Allen Wolfthal)

Netty实践与NIO原理

风格不统一 提交于 2019-12-31 00:43:23
一、阻塞IO与非阻塞IO Linux网络IO模型(5种) (1)阻塞IO模型 所有文件操作都是阻塞的,以套接字接口为例,在进程空间中调用recvfrom,系统调用直到数据包到达且被复制到应用进程缓冲区或发生错误时才返回,期间会一直等待(阻塞)。模型如图: (2)非阻塞IO模型 recvfrom从应用层到内核时,如果该缓冲区没数据,直接返回一个EWOULDBLOCK错误,反复轮询检查这个状态,看是否有数据到来。如图: (3)IO复用模型 Linux提高select/poll,进程通过将一个或多个fd(file descriptor)传递给select或poll系统调用,阻塞在select操作上,侦测多个fd是否处于就绪状态。select/poll顺序扫描fd是否就绪,而且支持的fd数量有限。Linux还提供了一个epoll系统调用,使用基于事件驱动的方式代替顺序扫描,性能更高。当有fd就绪时,立即回调函数rollback。如图: (4)信号驱动IO模型 首先开启套接口信号驱动IO功能,通过系统调用sigaction执行一个信号处理函数,该函数立即返回,进程继续工作,它是非阻塞的。当数据准备就绪时,就为该进程生成一个SIGIO信号,通过信号回调通知应用程序调用recfrom来读取数据,通知主循环函数处理数据。如图: (5)异步IO模型 告知内核启动某个操作,让内核在整个操作完成后

Anyone know what this error mean for android tabs?

旧巷老猫 提交于 2019-12-30 11:12:24
问题 I am trying to try out the tutorial online and wanted to put the tab to the layout xml. I have change the extends from Activity to TabActivity. In the design view of the layout xml, I have the below. Error during post inflation process: TabHost requires a TabWidget with id "android:id/tabs". View found with id 'tabs' is 'com.android.layoutlib.bridge.MockView' The following classes could not be found: I have looked for solution but none of them fixed except I found one in different language. I

k8s的DamonSet使用

拟墨画扇 提交于 2019-12-30 10:15:46
Deployment 部署的副本 Pod 会分布在各个 Node 上,每个 Node 都可能运行好几个副本。DaemonSet 的不同之处在于:每个 Node 上最多只能运行一个副本。 1.DaemonSet 的典型应用场景 在集群的每个节点上运行存储 Daemon,比如 分布式存储 glusteFS 或 ceph。 在每个节点上运行日志收集 Daemon,比如 flunentd 或 logstash。 在每个节点上运行监控 Daemon,比如 Prometheus Node Exporter 或 collectd 其实 Kubernetes 自己就在用 DaemonSet 运行系统组件。执行如下命令: kubectl get daemonset --namespace=kube-system daemonSet kube-flannel-ds 和 kube-proxy 分别负责在每个节点上运行 flannel 和 kube-proxy 组件。 因为 flannel 和 kube-proxy 属于系统组件,需要在命令行中通过 --namespace=kube-system 指定 namespace kube-system 。如果不指定则只返回默认 namespace default 中的资源。 下面详细分析两个 k8s 自己的 DaemonSet: kube-flannel-ds

kali源

痴心易碎 提交于 2019-12-30 05:33:53
apt源: #中科大 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib #阿里云 deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib #清华大学 deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free #浙大 deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free deb-src http://mirrors.zju.edu.cn/kali kali

ssh远程登录出现Host key verification failed.解决办法

匆匆过客 提交于 2019-12-30 05:32:06
今天通过ssh和域名连接主机: IcarusdeMacBook-Pro:~ icarus$ ssh root@icarusyu.me 出现了如下错误: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for icarusyu.me has changed, and the key for the corresponding IP address 165.227.52.49 is unchanged. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. Offending key for IP in /Users/icarus/.ssh/known_hosts:4 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@