Above is the configuration file in tomcat5.5 's server.xml, if you want to change the root directory
after the modification is complete, restart Tomcat to run the program in the new directory.
I. Purpose
When using the CentOS6.3 version Linux system, found that the root directory (/) of the space is not sufficient, and other directory space has a lot of free, so this article is mainly for the existing space to adjust. First, let's look
/boot: Start Linux core files;The following are other common Linux operating system directories:/bin: Store The most commonly used commands;/dev: Device files;/etc: Store various configuration files;/home: Household directory;/lib: The most basic
Acquisition of relative pathsDescription: The relative path (that is, who does not specify when it is relative) can be obtained in the following ways (whether it is a generic Java project or a Web project)String Path = System.getproperty ("User.dir")
After you install the integration environment by using XAMPP or WAMP, changing the Web root of Apache causes the localhost,localhost/phpmyadmin to be inaccessible.Workaround:Open the Apache configuration file: ". /apache/conf/extra/httpd-vhosts.conf,
Getrootpath =function(){ //get the current URL, such as: http://localhost:8080/ems/Pages/Basic/Person.jsp varCurwwwpath =Window.document.location.href; //gets the directory after the host address, such as:/ems/pages/basic/person.jsp
Actually, the problem is simple.
Index.html
Copy CodeThe code is as follows:
The body test of Yantai University
upload.php
The following JS code is to obtain the file root directory, and then assign to the hidden type
get the root of the console application method Method 1, Environment.currentdirectory Gets or sets the fully qualified path of the current working directoryMethod 2, AppDomain.CurrentDomain.BaseDirectory gets the base directory, which is used by the
/binSystem Execution Program Files/devFile directory for hardware devices/homeUser's home directory/libSystem Library file Directory/mntMount directory, mounting of peripherals/mediaFrequently used for mounting media files/optOptional third-party
A few days ago with the DW write code, found each write code preview can, in the browser cannot be found. Don't care at the beginning, anyway, from the saved file to find that document, with a browser can see, not a big problem also didn't mind.
Principle Documents not kidding me?recommended to put in the disk descriptor directory , ignoring me, check the JDK environment more than once, check the contents of multiple times BAT file, still not resolvedThe main class could not be found or
Index.php:WordPress core index file, which is the blog output file.
License.txt:WordPress GPL license file.
My-hacks.php: Defines an append program that is processed before the blog output. The default installation does not have this file, but
Many frameworks put index.php under public, but there are two versions of the YAF framework (GitHub and documentation), where is the best place to put it?
I try to put it under public, http://localhost/yaf_test/is inaccessible, but
CentOS 7.0 Minimized installationThe first line is login[[Email protected] ~]#[[email protected] ~]# CD. /[[email protected]/]# lsbin Dev home lib64 mnt proc run SRV tmp Varboot etc Lib media opt root sbin sys usrCompare with disk files[[email
In the "Conf/catalina/localhost" directory, add a new file "root.xml" (Note the case, OH), the file content is as follows:Reference:1: How to deploy an app to the Tomcat root directory2: Modify the/webapps/root publishing path for TOMCAT7Remove the
function Getrootpath () {Get the current URL, such as: http://localhost:8083/uimcardprj/share/meun.jspvar curwwwpath = Window.document.location.href;Gets the directory after the host address, such as: uimcardprj/share/meun.jspvar pathName =
Typically, a Web project is published under Tomcat under the WebApps file directory. So that when we visit:For example, if the Web App project name is: Webmanager, after deploying to Tomcat, it is deployed in Tomcat/webapps/webmanager with the URL:
Create the new directory that you want to change, and change the hosting permissions for Apache users chown-r apache:apache/mnt/www
Stop the Apache Services service httpd stop
3To modify the Apache configuration file, default to/etc/httpd/conf/
Typically, a Web project is published under Tomcat under the WebApps file directory.For example: The Web App project name is: Stock, then deployed to Tomcat, is deployed in tomcat/webapps/stock with the URL: Http://localhost:8080/stock.However,
PHP Note (7)-Absolute path to the project root directory
?
In the development of PHP system, the introduction of files is a very headache, because the file reference will appear nested, so the file is referenced in the correct way, in another
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.