localhost

How to expose my localhost to the WWW? (port forwarding?) [closed]

大兔子大兔子 提交于 2019-12-18 05:47:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am running Apache/php on my localhost and would like to be able to make this publicly accessible from the internet. I think this is achieved by port forwarding? Can someone point me in the right direction? 回答1: It depends on the connection you have. If your machine has a public IP address, it's on the Internet

AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'

微笑、不失礼 提交于 2019-12-18 05:37:46
问题 Following on from my last question Error: No module named psycopg2.extensions, I have updated my mac OS to Mountain Lion and installed Xcode. I have also installed psycopg2 using 'sudo port install py27-psycopg2'. I am now trying to run 'python manage.py runserver' but am receiving this error AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF' Any help on how to fix this and get my localhost running? 回答1: From django docs: A Django settings file contains all the configuration of

localhost blocked on Chrome with “Privacy Error”

醉酒当歌 提交于 2019-12-18 04:38:15
问题 Google Chrome is blocking localhost . I'm using XAMPP with Apache localhost , ports 80 and 443 . Google Chrome is up to date. I'm getting the following error: Your connection is not private Attackers might be trying to steal your information from localhost (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID 回答1: Try this: In Chrome, put in chrome://flags/#allow-insecure-localhost in the address bar. Enable the option that says "Allow invalid certificates for

maven自动部署Tomcat错误排除

一笑奈何 提交于 2019-12-18 04:06:02
转自:https://blog.csdn.net/wuha0/article/details/18658113 在Maven与Tomcat配合部署过程中,最常见的错误有三种,折腾了半天,终于找到三种错误产生的原因,以及相应的完美解决办法 1.Connection refused错误 报错信息如下: [ERROR]Failed to execute goal org.apache.tomcat.maven: tomcat7-maven-plugin: 2.0- SNAPSHOT: deploy (default-cli) on project helloworld: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1] 原因:未启动Tomcat服务器 解决办法:先启动Tomcat服务器再选择Run 2. 401错误 报错信息如下: [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin: 2.0-SNAPSHOT:deploy (default-cli) on project helloworld: Cannot invoke Tomcat manager: Server returned HTTP

Maven入门示例(4):自动部署Tomcat错误排除

ぃ、小莉子 提交于 2019-12-18 04:04:18
在Maven与Tomcat配合部署过程中,最常见的错误有三种,折腾了半天,终于找到三种错误产生的原因,以及相应的完美解决办法 1.Connection refused错误 报错信息如下: [ERROR]Failed to execute goal org.apache.tomcat.maven: tomcat7-maven-plugin: 2.0- SNAPSHOT: deploy (default-cli) on project helloworld: Cannot invoke Tomcat manager: Connection refused: connect -> [Help 1] 原因:未启动Tomcat服务器 解决办法:先启动Tomcat服务器再选择Run 2. 401错误 报错信息如下: [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin: 2.0-SNAPSHOT:deploy (default-cli) on project helloworld: Cannot invoke Tomcat manager: Server returned HTTP response code: 401 for URL: http://localhost:8080/manager

How to permanently exclude localhost from HSTS list in Google Chrome

为君一笑 提交于 2019-12-18 03:04:46
问题 This is a followup question to Google Chrome redirecting localhost to https. Does anyone know, how to permanently exclude localhost from HSTS list in Google Chrome? Or, any other elegant solution that wouldn't require developer to visit chrome://net-internals/#hsts and delete localhost every time when switching from working on an HTTPS project to a different project on HTTP? 回答1: Update: You can install a proper SSL certificate for those domains if you want to for free, so you won't need to

apollo环境搭建

安稳与你 提交于 2019-12-18 03:03:12
Apollo简介 Apollo(阿波罗)是携程框架部门研发的分布式配置中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性,适用于微服务配置管理场景。(官方回答) 在微服务架构下,我们可能要管理几十个、成百上千个服务,在这样的情况下不得不考虑配置文件的处理。一个可以方便快捷的处理这些配置文件的配置中心是开发人员刚需的,顺应潮流SpringCloudConfig和apollo就出现了。 为什么用Apollo而不用springCloudConfig? 虽然springCloudConfig对SpringCloud支持更好但是需要结合git,没有可视化界面,并且从功能上来看apollo更加全面、强大,而且apollo开源,社区活跃, 开源地址 实例 从官网下载所需文件 下载这三个 也可以去我的网盘下载 地址 提取码:b3bh 准备工作 jdk要求如下: Apollo服务端:1.8+ Apollo客户端:1.7+ 建议1.8及以上 mysql 5.6.5+ window搭建 step1 ,将下载好的zip分别解压至新建的三个folder step2 ,修改apollo-configserviceDBconfig spring . datasource . url = jdbc : mysql : / / 127.0 .0 .1

Is it possible to make part of a site on IIS only viewable from localhost?

雨燕双飞 提交于 2019-12-18 01:59:05
问题 We've got a webserver running IIS. We'd like to run maybe a shared blog or something to keep track of information. Because of security issues, we'd like for that part to be only viewable from localhost so people have to remote in to use it. So, to repeat my question, can part of a website be made viewable from localhost only? 回答1: In IIS6 you can bring up the properties for the web and click on the directory security tab. Click the button in the middle of the tab for editing the IP and Domain

Is it possible to make part of a site on IIS only viewable from localhost?

痞子三分冷 提交于 2019-12-18 01:59:02
问题 We've got a webserver running IIS. We'd like to run maybe a shared blog or something to keep track of information. Because of security issues, we'd like for that part to be only viewable from localhost so people have to remote in to use it. So, to repeat my question, can part of a website be made viewable from localhost only? 回答1: In IIS6 you can bring up the properties for the web and click on the directory security tab. Click the button in the middle of the tab for editing the IP and Domain

What is the right way to write my script 'src' url for a local development environment?

99封情书 提交于 2019-12-18 01:56:15
问题 I'm working on a local environment and I'm not sure if I've written my src URl correctly because my functions aren't working. The bold script tag has the src in question. <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script src="http://www.parsecdn.com/js/parse-1.2.2.min.js"></script> **<script src="/Users/myUserName/Desktop/myPage.js"></script>** </head> <body> <div id="mainDiv"> <p><a href="#">anchor</a></p> </div> <