Building the server first step: Install the databaseI chose the more general MySQL here to meet most of the market needs.First of all, prepare the MySQL compression pack Xshell and xftp here to address:
Install MySQL, prepare before installationIf the MySQL user does not exist, then add the MySQL userGroupadd mysqluseradd-g MySQL MySQL MySQL compilation installationMake time is exceptionally longwget
1. User Management
1.Linux User Management
Linux has three types of users:
(1.) Superuser: Root user has all the privileges of the operating system uid=0
(2.) Normal User: With limited operating system permissions uid=500-6000
(3.)
1. Command Prompt[email protected] ~]# Root: User namelocalhost: host name~: Represents the path, which represents the home path of the current userHome path for Super admin:/root/home path for normal users:/home/user name/#: Identity, Super
What should we do if we want to add a hard drive to the system?1. Partition the disk import line to establish the available partition;2. Format the partition to establish the filesystem available to the system;3. If you want to be careful, you can
Touch:change file timestamps changing the timestampCommon options:-A change the file's access time to the current time-M change the file's modified content time to the current time-C Change the CTime time of the file to the current time, that is,
Linux files can be divided into ordinary files, directory files, linked files, device files, and pipeline files of species basic types.(1) Common documentsOrdinary documents generally refer to files that are accessed and can be further subdivided
One: File directory Operations Command(i) Create a fileVim file name Press I enter insert mode after writing the file, press ESC, and then enter: Wq The file is saved after hitting enter / And . The difference / Indicates that the root
Article transferred from https://www.cnblogs.com/franson-2016/p/6063226.htmlMethod One:Add variable "to all users (permanent)" in the/etc/profile fileUsing VI to add a variable to the file/etc/profile file, the variable will be valid for all users
1 to see if Port 8010 is occupied[Email protected] ~]# Netstat-an|grep 8010TCP 0 0 0.0.0.0:8010 0.0.0.0:* LISTEN2, view 8010 is why the program occupies[Email protected] ~]# lsof-i:8010COMMAND PID USER FD TYPE DEVICE SIZE NODE NAMEJava 25402 root
Application Scenarios:When Tomcat is running, Tomcat's log files are locked by the Tomcat process, forcing the deletion to fail. If you want to empty the contents of the file immediately, there are several ways to do it.(1) Use an empty stream
1. Configure Tomcat to save the process number to the $TOMCATHOME/bin/tomcat.pid file after booting.To modify the $tomcat_home/bin/catalina.sh file, add the catalinapid parameter line below the Prgdir line, as follows:
Prgdir=dirname
The steps to add a hard drive to a virtual machine are a little more nonsense, mainly listing a few detailed steps to set up after adding a hard drive:1. View disk information : Fdisk-lsBefore adding as shown:After adding as:can also be used: ls/dev/
January 10, 2017, Tuesday the meaning of the Linux file system _ each Rootfs: Root file systemFhs:linux/boot: System boot related files, such as kernel, INITRD, and Grub (bootloader)/dev: Device filesDevice files:Block devices: Random access, data
The common compression formats are: zip,gz,bz2,Z,xzCompression algorithms vary in proportion to compressionGzip Usage: Compressed after the format is. gz, the source files are deleted after compression 如: gzip /tmp/file
Linux does not differentiate file types by extension, which is only visible to people; Windows relies on extensions to differentiate file types and then open them./dev Device Directory/Boot System startup directory/etc configuration File Save
In our daily work, the server disk is full of a common problem, then how can we logically have a way to deal with this matter?First, when our server disk is full we generally think of the larger and less important files are deleted, thus freeing up
About RsyncRsync is a data-mirroring backup tool for Linux systems, using the Fast incremental Backup tool remote sync to remotely synchronize, support local replication, or synchronize with other Ssh,rsync hosts
Rsync-A archive mode-V Verbose
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service