I need to compile the Java program on the Linux machine, so I've installed the JDK (Java Development Kit), and now I'm trying to set the JAVA_HOME environment variable to point to the installed JDK. What is the most recommended way to set up a
1. Windows platform
Start → run →cmd into the command prompt, enter Netstat-ano to see all the connected PID in the task Manager to find the corresponding PID program if there is no PID in Task Manager, you can select "View"-"Choose Column" in Task
When we use specific commands to read or edit text from a string or file under Unix/linux, we often need to filter out the output to get the interesting part. Then the regular expression comes in handy.
What is a regular expression?
A regular
In the sixth section of the Awk series, let's take a look at the next command, which tells Awk to skip over all the remaining patterns and expressions you have provided, and directly process the next input line.
The next command helps you prevent
The following is a summary of the Linux directory permissions.
R Permission:
Permissions for the column directory. You can list the directory names, but you cannot get the attributes (dates, owner groups, permissions, and so on) in the directory,
The Linux system operates as follows:
1. If your disk is previously mount on the server, first Umount disk
For example: Your disk is mounted in the/MNT/DEV1 directory.
The code is as follows
Copy Code
Umount/mnt/dev1
A file doesn't know where it is, and you can usually use some of the following commands to find:Which view the location of the executable fileWhereis View the location of the fileLocate view file location with databaseFind actual search hard disk
cve-2013-5211 Vulnerability Description:
Cve-2013-5211 was first announced January 10, 2014, because NTP itself does not verify the sender's source IP address. This is similar to the DrDoS (distributed reflection denial of service attack) used by
1: After the power supply, the first step of the host is to query the BIOS (full name: Basic input/output System) information. Understand the hardware status of the whole system, such as CPU, memory, video card, network card, etc. Well, this step
First: Modify the/etc/passwd file
Second: usermod command
Detailed description is as follows:
Usermod [-lu][-c ][-d ][-e ][-f ][-g ][-g ][-l ][-s ][-u ][user Account]
Example
The first method: VI/ETC/PASSWD
Find the lines of users you want to
One, zoning
Fdisk/dev/sdb//sdb for newly added disks
M View Command MenuMr. N expands the partition and then generates the logical partitionL represents logical partitioningT set partition type FD (Auto RAID) 8e represents LVMW Save exitP Print
If your server is always reporting low memory, and often because the service is forced to kill because of insufficient memory, without adding physical memory, enabling the swap Swap area as virtual memory is a good choice, I buy the Digitalocean VPS
There are two ways in which a process is occupied:
The code is as follows
Copy Code
1, NETSTAT-ANL | grep "80";2, lsof-i:80
Cases
code is as follows
copy code
[Root@host ~]#
How to view distribution information for Linux systems
The code is as follows
Copy Code
#[root@hsnoklox lnmp0.9]# Cat/etc/issueCentOS Release 5.3 (Final)Kernel R on a m# lsb_release-aLSB Version::
Linux time modification does not restart modify time zone
First, the time to modify Linux
Root uses the date directive: Date-s
1, only modify the date, do not modify the time, input:
Linux Code
Date-s 2007-08-03
2, only modify the time, input:
When it comes to "sync," the weapon that has to be mentioned is rsync, and today is the art of sync I see in this tool.
1. Configure the synchronization source
Install rsync:yum-y Install rsync xinetd
Open Rsync:vim/etc/xinetd.d/rsync Change
Common directivesLS Display file or directory-l list File details L (list)-a lists all files and directories under the current directory, including Hidden A (all)mkdir Creating a Directory-P Create directory, if no parent directory, create p (parent)
Configure NTP Automatic Update timeInstalling the Ntpdate Program
shell># yum–y Install Ntpdate
Use Crontab to set the system to synchronize time with the NTP server 0:00 per dayshell># crontab–e
0 0 * * *
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