The following is a shell script to restart a process under Linux, taking the Tomcat process as an example:
#!/bin/sh
Pid= ' Ps-ef|grep tomcat|grep-v Grep|awk ' {print $} '
If ["$pid" = ""]; Then
echo "Tomcat service does not start!"
Else
Kill-9
Linux how to set the system time one-step. Friends who do experiments with Linux virtual machines will know. When you restore Linux to a certain point, VMware can not help you to reset the system time. So it's time to do it by hand. about how to set
Often taking photos will often require a large number of photos to reduce the size of the network to facilitate transmission or storage.
Here's an easy way to change a large number of photos to a specified size
Find./-name ' *.jpg '-exec
1. Query Inode:
The code is as follows
[Oracle@test]$ Ll-i
Total 14694452
17956913-rw-r–r–1 Oracle Oinstall 0 18 20:24 1? Txt
2. Modify the test file name:
The code is as follows
Find. -inum 17956913-exec mv {} file.txt;
3. Delete garbled
Environment: A Linux Machine single card, a window machine single card, a four-port hub.
Background: The landlord only provides a line of Internet access and restricts access to only one network card (the NIC of my Linux machine).
Objective: To
A snapshot of a virtual machine is divided into the following steps:
1. First we want to create a stored logical volume to generate templates and snapshot files;
2. Make the template of the snapshot;
3. Create a snapshot.
1. Create Logical
File/etc/resolv.conf configures a DNS client that contains the domain name search order of the host and the address of the DNS server, each of which should contain one keyword and one or more parameters separated by a space.
Here is an example file:
The syntax for the netstat command is:
netstat [options]
The common parameters of netstat are as follows:
-a displays all sockets including those that are listening
-C is displayed again every 1 seconds until the user interrupts it
-I displays
Rsync is ideal for quickly synchronizing large, complex directories between two machines, such as the forum's attachment directory. In conjunction with SSH, the security is guaranteed, and you can use SSH public key and cron for automatic timing
1.uniq command
Usage Description: This command reads the input file and compares the adjacent rows. Under normal circumstances, the second and more repeated rows will be deleted, and the row comparison is based on the sort sequence of the character
# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-c
8 Intel (R) Xeon (r) CPU E5410 @ 2.33GHz
(see there are 8 logical CPUs, also know the CPU model)
# Cat/proc/cpuinfo | grep Physical | Uniq-c
4 Physical id:0
4 Physical Id:1
(It's actually two
1. First in the Windows environment in the driver copy to the U disk up,
2. Redhat with the first disk guide, when there are prompts you whether to load hard driver, choose Skip, this is the OS does not detect the hard disk prompts, this time can
Would you like to experience Linux? Carving is too wasteful, while U disk can be used many times. This article is about how to install the Linux system via U disk. With the Universal-usb-installer software, most Linux mirrors are easy to install via
Linux access Control List (ACL) is mainly used to control the user's permissions, you can do different users have different permissions on the same file, then how to operate it? The following small compilation teaches you how to set access control
Linux to modify the IP address is usually used to modify the ifconfig, but this modification is very troublesome, the following small series to introduce the use of the command to change the IP address method, together to learn under it.
easy to solve the Linux U disk garbled method:
1, the general use of this command:
Mount-o Iocharset=utf8/dev/sdb/tmp/fat
2, if not, you can try the following command:
Mount/dev/sdb/mnt-t Vfat-o Codepage=936,iocharset=utf8
VSFTPD is a Linux system in an FTP software, it can be used to achieve files, data upload and download, but some users will find VSFTPD login is very slow, one stop, then how to solve the problem of vsftpd landing slow card?
1. Modify
one, tools/raw materials
Universal-usb-installer, Linux mirroring.
Ii. Steps/Methods
1, open Universal-usb-installer software
2, click to accept the agreement
3, choose what kind of mirror to install
4,
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