Change the default Web site root address method for Apache as follows:0, first find the Apache file in the home directory, and then do the following1. Find DocumentRoot "X:/apache/htdocs" to Change "X:/apache/htdocs" to your customized website
1 /binBinary binary binaryMany "Execute Program Files" directories corresponding to "directives"LS pwd init and so on2 /sbinSuper binary Hyper BinaryMany "Execute Program Files" directories corresponding to "directives"This directory file
Linux file structure, to see what each file is to use, first use the LS command to see what files.650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/8F/7C/wKioL1jg6JeSR8MvAAAdthS-iP4366.png "title=" Ls.png "alt=" Wkiol1jg6jesr8mvaaadths-ip43
/bin: Store The most commonly used commands;/boot: Start Linux core files;/dev: Device files;/etc: Store various configuration files;/home: Household directory;/lib: The most basic dynamic Link sharing library of the system;/MNT: Generally empty,
Ubuntu Chinese installation, the home directory are Chinese, such as "Download" "Document" and so on, when using the shell is very inconvenient, you can use the following methods to change these folder names back to English1. Using commandsExport
51538995When trying to use Freemarker in the SPRINGMVC framework, the way to get the root path is as follows: class = " Org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver "> value =
functionGetrootpath () {//get the current URL, such as: http://localhost:8088/test/test.jsp varCurpath=Window.document.location.href; //gets the directory after the host address, such as: test/test.jsp
There are two ways of specifying the root directory1: Define the War package name as root directly2: Using DocbaseFor example, the author of the war package named Xibu.war, the war package is dropped into the /Users/archerlj/Library/apache-tomcat-8.5
/bin
bin is the abbreviation for binary. This directory inherits the structure of the UNIX system and stores the commands most often used by the user. such as CP, LS, cat, and so on.
here is a boot linux some of the core
This article mainly introduces the way to get the URL of the root directory, need friends can refer to the followingThe code is as follows: public static string Getrooturi () {String apppath = ""; HttpContext httpcurrent = HttpContext.Current;
This article mainly introduces JavaScript to get the Web application root directory method, the need for friends can refer to theThe code is as follows:
String Server.MapPath (String path)
Returns the physical file path corresponding to the specified virtual path on the Web server.
Server.MapPath (request.servervariables["Path_info"])
Server.MapPath ("/")
Server.MapPath ("")
Server.MapPath
Df-h View/directory has been used more than 90%, so the root directory needs to be expandedOne, close your virtual machine system, find the following: Select "Edit Virtual mache settings"
Click "Expand"
Enlarge the space of the virtual machine to "4
1:bin DirectoryThis directory holds all binary commands (users)2:boot DirectoryDirectories required for Linux kernel and boot system programs3:dev DirectoryDirectory of all device files (e.g. sound card, disk, optical drive)4:ETC DirectoryBinary
The recent section has suddenly received some disk alarms, Take a look at the results the alarm content is that there is a directory under the root user's home directory that has no access. GVFS, during the use of CP copy RM delete are prompt no
Root file System (ROOTFS)/boot: Boot file directory, kernel file (vmlinuz), boot loader (bootloader,grub)/bin: Basic user binary commands that are available to all users and cannot be associated with separate partitions. The program that the OS
I created a new user through root, but when I use this new user, I find that the space in/home/my is only dozens of M, which is completely unable to satisfy my use, so the following method expands the space under the root.My this operation, refer to
1. View the newly added disks as follows:/DEV/SDE for newly added disks The following script can be used to scanEcho '---' >/sys/class/scsi_host/host0/scan [[email protected] ~]# fdisk-l disk/dev/sda:21.5 GB, 21474836480 bytes255 heads,
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.