localhost

项目部署tomcat的常用3种方式

≡放荡痞女 提交于 2019-12-18 00:11:54
一、静态部署 1、直接将web项目文件件拷贝到webapps 目录中 Tomcat的Webapps目录是Tomcat默认的应用目录,当服务器启动时,会加载所有这个目录下的应用。所以可以将JSP程序打包成一个 war包放在目录下,服务器会自动解开这个war包,并在这个目录下生成一个同名的文件夹。一个war包就是有特性格式的jar包,它是将一个web程序的所有内容进行压缩得到。具体如何打包,可以使用许多开发工具的IDE环境,如Eclipse等。也可以用 cmd 命令:jar -cvf mywar.war myweb webapps这个默认的应用目录也是可以改变。打开Tomcat的conf目录下的server.xml文件,找到下面内容: <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 将appBase修改即可。 2、在server.xml中指定 在Tomcat的配置文件中,一个Web应用就是一个特定的Context,可以通过在server.xml中新建Context里部署一个JSP应用程序。打开server.xml文件,在Host标签内建一个Context,内容如下。

Can't connect to localhost from Chrome extension

强颜欢笑 提交于 2019-12-17 23:33:57
问题 I am working on a Chrome extension that tracks time, and uses Google App Engine for the backend. For testing, I'm trying to connect a local version of the extension to a local version of the App Engine app. When I try to send a POST request, I'm getting: XMLHttpRequest cannot load http://localhost:8080/report . Origin chrome-extension://mbndmimplohfkkcincjodnfpaapbbmei is not allowed by Access-Control-Allow-Origin. But it works when I change the URL so that it posts to the appspot.com URL.

Running sites on “localhost” is extremely slow

蓝咒 提交于 2019-12-17 22:32:26
问题 Having real trouble using my localhost to test sites. It runs extremely slowly! Sometimes it takes up to a minute to load a page. I'm using Firefox and the sites I'm testing run fine on other developers in my office's local machines / on the production server. I've gone through the normal things :- Disabled IPv6 Not running in debug mode Put the site in the highest app pool (High Isolated) on IIS 6. Taking of firewalls etc. The problem only seems to occur when hitting pages which contain some

configuring virtual host and localhost redirecting to the xampp folder

我与影子孤独终老i 提交于 2019-12-17 22:24:24
问题 I have problem with creating virtual host. I am using Windows 7 x64 Professional. In file C:\Windows\System32\drivers\etc\hosts I have only this lines: 127.0.0.1 myhost 127.0.0.1 www.myhost And in file C:\xampp\apache\conf\extra\httpd-vhosts.conf I have this: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/" ServerName localhost ServerAlias www.localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "C:/Users/Me/Dropbox/Project/public" ServerName myhost ServerAlias www

IIS - can't access page by ip address instead of localhost

馋奶兔 提交于 2019-12-17 22:22:27
问题 I'm trying to publish ClickOnce application and test it locally. I want to provide installation link so I need to update location with an IP address otherwise I won't be able to install it (because localhost is translated into computer name and it's not accessible). The problem is, that on my IIS I can access my page only by using localhost in the address. http://localhost:9995/publish/Publish.htm <-- working http://192.168.1.104:9995/publish/Publish.htm <-- not working (my IP address) http:/

How do I run a file on localhost?

。_饼干妹妹 提交于 2019-12-17 21:58:09
问题 How do I actually run a file on localhost? I know it is working, but how do I run a file on it, and how do I verify that the file is in fact running on localhost? Server newbie here, additional questions (I have xampp running Apache 2.2): From your responses it sounds like I have to type in the path in the browser in order to open the file on the localhost. So, if I want to have the file in a subdirectory, I would have to type the full path including the directory? Is there a way to have the

MySQL localhost / 127.0.0.1 problem

╄→гoц情女王★ 提交于 2019-12-17 21:07:37
问题 I have a local web server running on my macbook and I've come across a strange problem. I can access MySQL just fine using a program like Sequel Pro, password works and life is great. Within PHP, if I have the db server as 127.0.0.1, everything works as well. However, if I change the db server to localhost, I get access denied for 'root'@'localhost' errors. I've made sure the MySQL socket is setup correctly, but still cannot use localhost. Any insight would be awesome. Thanks! 回答1: Besides

Rubymine(Jetbrains) local server. Can I get it to run from localhost root?

不想你离开。 提交于 2019-12-17 20:32:46
问题 Currently when I open the html file I'm working on it takes me to http://localhost:63342/project-folder/index.html Is there a way to set Rubymine to run my project from the root, eg. http://localhost:63342/index.html 回答1: http://localhost:63342/index.html -- you cannot have this kind of URL with built-in web server .. as IDE does not know what project to serve (as it works for ALL your projects a not only currently opened). When built-in web server is in use, the URL has to have some hint (

Gitstack的安装部署与android studio 实现对Gitstack上传更新(一)

ε祈祈猫儿з 提交于 2019-12-17 19:08:08
Gitstack的安装部署与android studio 实现对Gitstack上传更新(一) 环境是Win10 用到Gitstack版本 GitStack_2.3.9.exe 安装 安装GitStack,一直下一步即可,如需改变安装目录则自行修改。 建议勾选,连同Git一起下载,博主试过分开下载GitStack和Git,出现过在GitStack中创建仓库失败的情况。 GitStack使用 通过浏览器进入GitStack 地址 http://localhost/gitstack/ 默认用户名 admin ,密码 admin 进入GitStack首页 创建仓库 创建成功 创建用户 为创建的仓库添加用户权限 到此GitStack就配置完成 Android studio 实现对Gitstack上传更新 打开Git的 git-bash.exe 进入bash命令,用命令随便进一个盘或者文件夹,将GitStack 上的仓库地址输入进去 git clone http://localhost/lb.git 注意:如果仓库地址不是本机将localhost改为服务器ip地址 按回车键 输入GitStack里设置的可操作性用户和密码 在E盘下找到克隆的lb文件夹 并将lb文件夹里的 .git文件剪切到你要上传GitStack的项目中去 注意:如果找不到 .git文件请打开显示隐藏文件

How to remove port number from http://localhost:8123 to use as http://localhost? [closed]

跟風遠走 提交于 2019-12-17 18:42:32
问题 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 7 years ago . I had to change my default apache port number 80 to 8123 (just random number) I changed the following files .. httpd.conf Listen 8123 ServerName localhost:8123 httpd-vhosts.conf NameVirtualHost *:8123 <VirtualHost *:8123> ServerName localhost DocumentRoot "C:/xampp/htdocs" DirectoryIndex index.php </VirtualHost>