localhost

二、系统初始化

北战南征 提交于 2019-12-06 01:57:05
所有机器上操作 #关闭防火墙 [root@etcd01 ~]# systemctl stop firewalld [root@etcd01 ~]# systemctl disable firewalld #关闭selinux [root@k8s-master02 ~]# swapoff -a [root@k8s-master01 ~]# cat /etc/fstab # /etc/fstab UUID=c7a2826b-82a9-43de-b408-ecd64e8f419a / xfs defaults 0 0 UUID=d5682938-f765-4684-8423-99be73aa8a2f /boot xfs defaults 0 0 #UUID=b9f8329a-3023-4786-bafa-e576d6a18404 swap swap defaults 0 0 #设置时间同步 [root@k8s-master02 ~]# /usr/sbin/ntpdate -u 10.16.8.18 #添加/etc/hosts [root@k8s-master01 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost

Difference between Localhost and opening html file

瘦欲@ 提交于 2019-12-06 01:05:26
问题 What is the fundamental difference running a file using a server in localhost, and opening a file such as file:///Users/$user_name/$your_directory/index.html , assuming no backend is used, and it is only frontend and contains html/css/js How does this also affect interactions with other server ie. ajax requests? I am sorry if this is too broad, but I haven't found a solid answer to these underlying questions. 回答1: Fundamentally, assuming at some point you're going to host the result on an

Take full localhost webpage screenshot (Firefox, Windows)?

风流意气都作罢 提交于 2019-12-06 00:34:11
I need to take a full screenshot of a localhost page I'm working on. Print Screen button offers me no solution to this nor the Alt-Print Screen does, as they take only what is displayed on the screen. I need the shot of the full page. I tried with some online services and a couple of add-ons for Firefox to no avail since they cannot reach any localhost addess or are not compatible with FF 29. Is there a way I can achieve this? I'll answer my own question. Forget about add-ons. You can do it via the browser's built-in Developer's Toolbar commands. Press Shift+F2 and to bring the toolbar up at

win10 下 搭建jenkins + SonarQube + maven实现项目自动化部署

筅森魡賤 提交于 2019-12-05 23:32:21
Jenkins :基于Java开发的持续集成工具(既然是工具,肯定是用来减轻工作量的),可以监控持续重复的工作,如果这些重复的工作交给jenkins去做,这样不仅减轻了自己的工作量也实现了jenkins自身的价值 大笑.gif。就拿我之前在公司实习所做的项目来说:项目环境是Eclipse + Maven + SVN,项目发包部署通常是以下几个步骤:   1、Eclipse中首先Clean一下项目,然后使用maven install操作等待打包完成。   2、找到打好的jar包上传到windows服务器上。   3、远程登录服务器进入jar包保存路径,执行 java -jar jar包名称.jar 启动jar包。 每次项目部署发包(正式和测试)都要执行这样的步骤,如果没有接触更简便的操作也就这样随遇而安了,后来我遇到了Jenkins和SonarQube...... SonarQube :管理代码质量的开放平台,可以快速定位代码中潜在的或者明显的错误,说白了就是用于分析代码。 好了,扯了这么多回归正题: 资源下载:    资源文件 提取码:8yfc 一、jenkins安装有两种方式:   1、直接安装msi文件。   2、将war包放入tomcat的webapps文件夹下,执行tomcat。注意:webapps文件夹下不要有其它war包。   安装完成之后地址栏输入:

What's the difference between using #form# and #getHttpRequestData()# with regard to charset?

淺唱寂寞╮ 提交于 2019-12-05 22:44:15
I have a coldfusion page, uni.cfm: <cfprocessingdirective pageencoding="utf-8"> <cfscript> <cfdump var="#form.a#" label="form"> <cfdump var="#getHttpRequestData().content#" label="form2"> Sending the following HTTP request produces in the returned html first the string "???" , then the string "a=ΠΣΩ" . POST http://localhost:8080/uni/unicode.cfm HTTP/1.1 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 User-Agent: unicli Host: localhost:8080 Content-Length: 8 Pragma: no-cache a=ΠΣΩ Why does #form.a# NOT process the binary string correctly, while getHttpRequestData() does? Having

localhost is working but not 127.0.0.1 in windows 7

佐手、 提交于 2019-12-05 22:27:37
I am running xampp on windows 7. When I do http://localhost , I get the xampp welcome screen in my web browser but http://127.0.0.1 does not work. In my windows hosts file, I have uncommented 127.0.0.1 localhost but the problem still exists. I have checked to see if firewall is blocking anything but still no good results. How do I resolve this problem. Two or three shot in the dark guesses. This is how I would diagnose the issue. It's possible that your web browser is resolving localhost on your computer to the IPV6 loopback address, ::1 . Compare the results of typing http://[::1] and compare

Mysql之配置双主热备+keeepalived.md

﹥>﹥吖頭↗ 提交于 2019-12-05 22:25:01
准备 1 1. 双主 master1 192.168.199.49 2 master2 192.168.199.50 3 VIP 192.168.199.52 //虚拟IP 4 2.环境 master:nginx + php + mysql + keepalived 5 VIP:只要和master在一个局域网内即可。 6 3. 服务器之间网络通畅,可以互相ping通。 7 4. 2个服务器的mysql版本要一致。数据库密码一致 8 5. 防火墙增加允许组播和允许VRRP(虚拟路由器冗余协)通信,这样主服务器在故障恢复后才能抢回资源 9 -A INPUT -s 182.148.15.0/24 -d 224.0.0.18 -j ACCEPT 10 -A INPUT -s 182.148.15.0/24 -p vrrp -j ACCEPT 11 重启生效:service iptables reload 配置服务器 1 服务器1: 2 3 在my.cnf文件的[mysqld]配置区域添加下面内容: 4 log-bin=mysql-bin #记录二进制文件 5 binlog_format=mixed #mysql默认采用的二进制格式 6 server-id = 2 #服务号,必须是唯一的,一般取IP的后8位 7 expire_logs_days = 10 #binlog过期清理时间 8 9

关于kong

狂风中的少年 提交于 2019-12-05 22:20:27
目录 为什么需要 API 网关( more ) 为什么使用Kong Kong 的管理方式 高可扩展性的背后—插件机制 [前言] : Kong 是一个云原生,高效,可扩展的分布式 API 网关。 自 2015 年在 github 开源后,广泛受到关注,目前已收获 1.68w+ 的 star,其核心价值在于高性能和可扩展性。 为什么需要 API 网关( more ) 在微服务架构之下,服务被拆的非常零散,降低了耦合度的同时也给服务的统一管理增加了难度。如上图左所示,在旧的服务治理体系之下,鉴权,限流,日志,监控等通用功能需要在每个服务中单独实现,这使得系统维护者没有一个全局的视图来统一管理这些功能。API 网关致力于解决的问题便是为微服务纳管这些通用的功能,在此基础上提高系统的可扩展性。如右图所示,微服务搭配上 API 网关,可以使得服务本身更专注于自己的领域,很好地对服务调用者和服务提供者做了隔离。 为什么使用Kong SpringCloud 玩家肯定都听说过 Zuul 这个路由组件,包括 Zuul2 和 Springcloud Gateway 等框架,在国内的知名度都不低。没错,我称呼这些为组件 Or 框架,而 Kong 则更衬的上产品这个词。在此我们可以简单对比下 Zuul 和 Kong。 举例而言,如果选择使用 Zuul,当需要为应用添加限流功能,由于 Zuul

django accessing localhost from any machine connected to any network

为君一笑 提交于 2019-12-05 21:02:01
I have a django project that I am running on localhost:8000 and that works fine. Now I want it to access from any machine that is connnected to other network. Doing some google I found that I can do it by setting port forwarding from my router. I have a tplink router and I did the following setting: Service Port:27015 IP Address: my_ip_address # obtained by ifconfig Protocol: All Status: Enabled Now I run my project with python manage.py my_ip_address:27015 But when I run with my_ip_address:27015 in url from another machine connected to another network I cannot view my site/page Can anyone

Public key authentication issues on cygwin

梦想与她 提交于 2019-12-05 20:34:21
问题 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