Under the Linux system, reboot Tomcat to operate with commands!First, go to the bin directory under TomcatCd/usr/local/tomcat/binUsing the Tomcat Close command./shutdown.shTo see if Tomcat is shutting downPs-ef|grep JavaIf the following similar
cd/usr/src/wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24-6.src.rpmRPM-IVH ipvsadm-1.24-6.src.rpm #会有Header V3 DSA signature:nokey, key ID warning, ignore it is, directory it automatically can not become the words to help it
List all currently logged-on user commands: whoThis command is used to view the current online users. This command is very useful. If you want to establish instant communication with other users, such as using the talk command, you must first make
I. Modify the time zone
Rm-rf/etc/localtime # Delete the current default time zone www. kwx. gdln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime # Replace the default time zone with Shanghai
Run the above command in SSH to change the VPS time
DNS is the server used to resolve the back-end IP address of the domain name. Like Windows and Linux, you can customize the DNS address, which is easy to modify. When Linux is used as a website server and Wordpress query is slow, you can try to
I. View cpu
More/proc/cpuinfo | grep "model name"Grep "model name"/proc/cpuinfo
If you feel more comfortable to watch
Grep "model name"/proc/cpuinfo | cut-f2-d:
How about linux commands.
Ii. view memory
Grep MemTotal/proc/meminfo
Grep MemTotal/proc/
The deep sleep of centos may occur because the screen is closed and there is no operation for a long time. In this case, you can only force the restart by using the power key. You can disable sleep by modifying the X11 configuration. The
First, install the ntfs-3g package on linux, so that the linux system can recognize the ntfs format Disk
Create the directory to be mounted
Mkdir/sda
Run the following command to start mounting:
1
mount
-t ntfs-3g
/dev/sda5
/sda
Now, you can see
Generally, you do not need to modify the OpenSSH client configuration file. For a given user, there are two configuration files :~ /. Ssh/config (user-specific) and/etc/ssh/ssh_config (Global Sharing ). To read these files in this order, for a given
As we all know, linux devices are very special. The system always reads the device in the same way, and the difference between devices is done by the device driver. Because of this, it is very easy to manage devices. Linux also provides virtual
Ext2ed (ext2 file system editor)Function Description: ext2 File System editing program.
Syntax: ext2ed
Note: ext2ed can directly process data in Hard Disk Partitions. This command is only available in Red Hat Linux.
Parameters:General
View basic linux help documentation-2014.2.11
--- Common commands
First man: Related command whatis
1. man manual search format
-Input? Key, forward search, such? -H: searches for rows containing "-h ".
-Enter the/key and search backward, for
1. view the current Partition
[Plain] view plaincopy
Free-m
2. Increase the swap size by about 2 GB.
[Plain] view plaincopy
Dd if =/dev/zero of =/var/swap bs = 1024 count = 2048000
3. Set swap files
[Plain] view plaincopy
Mkswap/var/swap
Each time the system is started, different services are started based on different runlevel levels. This article will show you how to modify and view the startup service of linux.Press [CTRL] + [ALT] + [F7]/[F8] to view the services that are being
Sometimes we use a USB flash drive to install centos, and accidentally install grub to the USB flash drive. As a result, the boot needs to be inserted into the USB flash drive to start the server, or grub is damaged. In this case, we need to
CentOS has a pam_tally2.so PAM module to limit the number of Logon failures. If the number of Logon failures reaches the set threshold, the user is locked.
Compile the PAM Configuration File
# Vim/etc/pam. d/login
# % PAM-1.0
You must disable the NetworkManager service and disable automatic start in service management.
Step 1: first view the local Nic and use the command to go to network-scripts
[Root @ root ~] # Cd/etc/sysconfig/network-scripts/
[Root @
Use the root account to log on. Do not use ssh to modify the password. Directly go to the system command mode to modify. 1. log on to the language configuration file vi/etc/sysconfig/i18n and run the preceding commands using SSH. Use the vi editor
Method 1 (for virtual machines): Adjust the linux resolution under VMWAREAfter linux is installed in VMWARE, the default resolution is 800x600, and the resolution is adjusted to 1024x768. The process of pixels being millions of pixels is as follows:1
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