A file access method, comprising: receiving a file access request from a process, wherein the file access request comprises a file identifier, and the file identifier indicates a to-be-accessed target file; accessing a first physical address space according to a preset first virtual address space and a preset first mapping relationship between the first virtual address space and the first physical address space, so that file access is implemented directly in the user space without frequent system calls during file access, wherein the first virtual address space is a part of user space in an operating system, the first physical address space stores a file system and is a part of memory space, the user space comprises shared process space and private process space, and the first virtual address space is the shared process space, wherein all processes have permission to access the shared process space; obtaining an index node of the to-be-accessed target file from the first physical address space according to the file identifier of the to-be-accessed target file, wherein the index node comprises file page table information of the to-be-accessed target file; obtaining a file page table of the to-be-accessed target file according to the file page table information, comprised in the index node of the to-be-accessed target file, wherein the file page table records a second physical address space in the first physical address space, the first physical address space includes the second physical address space used to store the to-be-accessed target file, a data page of the to-be-accessed target file is stored in the second physical address space, and the data page of the to-be-accessed target file is used to store file data; and accessing the to-be-accessed target file according to the second physical address space. receiving a file access request from a process, wherein the file access request comprises a file identifier, and the file identifier indicates a to-be-accessed target file; accessing a first physical address space according to a preset first virtual address space and a preset first mapping relationship between the first virtual address space and the first physical address space, so that file access is implemented directly in the user space without frequent system calls during file access, wherein the first virtual address space is a part of user space in an operating system, the first physical address space stores a file system and is a part of memory space, the user space comprises shared process space and private process space, and the first virtual address space is the shared process space, wherein all processes have permission to access the shared process space; obtaining an index node of the to-be-accessed target file from the first physical address space according to the file identifier of the to-be-accessed target file, wherein the index node comprises file page table information of the to-be-accessed target file; obtaining a file page table of the to-be-accessed target file according to the file page table information, comprised in the index node of the to-be-accessed target file, wherein the file page table records a second physical address space in the first physical address space, the first physical address space includes the second physical address space used to store the to-be-accessed target file, a data page of the to-be-accessed target file is stored in the second physical address space, and the data page of the to-be-accessed target file is used to store file data; and accessing the to-be-accessed target file according to the second physical address space.