Linux has 3 special extension Rights Management parameters:
Impact on files
Impact on Directory
Suid
Run with the permissions of the file owner
Nothing
Sgid
Run with the
The following is a shell script for restarting a process in Linux, for example with the Tomcat process:#!/bin/shpid= ' Ps-ef|grep tomcat|grep-v Grep|awk ' {print $} ' if ["$pid" = ""]; Then Echo ' Tomcat service does not start! ' else kill-9
Tidy up for later useCd/home Enter/home directoryCd.. Return to the top level directoryCd.. /.. Return to the top level two directoryCD into the personal home directoryCD-Return to the last directoryPWD Display work pathls to view the files in the
Reference Documentation:
Installation deployment:Http://www.cnblogs.com/wrmfw/archive/2011/09/08/2170465.htmlHttp://www.ha97.com/4467.htmlTo close the service:Http://linux.chinaunix.net/techdoc/net/2005/08/17/923721.shtmlTest
View interface Information Ifconfig (-a All/eth0 view specific NIC)Lo interface: Loopback interface, operating system comes withTurn off the appropriate NIC interface Ifup Ifdown (ifup eth0)Setup command configuration (command line-based text
First, boot and shutdown============== Boot =================Boot: is the standard term for "Start computer".Main boot sector: disk NO. 0 cylinder, a sector of number NO. 0 head, 512 bytes in size.MBR: The operating system is written during
Some suggestions for Linux beginners
1. Do not "Play with linux"
Many people may feel confused when using Linux. which release should I use? Is it because I have not installed anything? How can I upgrade it so quickly! Why is it so unstable!
How to select a Web server in Linux
The rapid increase in the popularity of Nginx and the steady decline in the market share of Apache Web servers can not help but cause many guesses. Many practitioners believe that this trend will make the solution
Switch from common users to root users in CentOS
1. open the terminal and prompt "$", indicating that the user is a common user. In this case, directly enter su, press enter, enter the root password, and press enter to switch to the root user, at
View the Oracle database version in CentOS
Method 1: v $ version database training
SQL> select * from v $ version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release
Retrieve Centos root User Permissions
The last time I encountered this problem, my friend encountered this problem again today, I recorded it by the way:The last time we encountered a problem on our server, the linux root User was lost. At that
Linux multi-nic binding tutorial
Lab environment: Redhat Enterprise Linux 5.2 VMware workstation 7
Figure 1 Nic configuration in the experiment environment: three virtual NICs, working in NAT Mode
1. Configure three NICs and bond0
[Root @ redhat5 ~]
CentOS web configuration on virtual machines
1. Set the VM Nic to bridge
2. Set the IP address to a fixed IP Address
3. Set Subnet Mask
4. Set the gateway to the IP address of the LAN router.
5. Set DNS my centos system, need to have DNS1 DNS2
CentOS test hard disk read/write speedTime is used for timing. dd is used for copying, reading from if, and writing to. If =/dev/zero does not produce IO, so it can be used to test the pure write speed. Similarly, of =/dev/null does not generate IO
Reset the Mysql root Password in CentOSIt is often necessary to help customers install Mysql. Sometimes the customer's Mysql has been installed, and has forgotten the password. This article mainly introduces how to enter Mysql and reset the password
Enable automatic mounting of ntfs on CentOS
1. Install gcc and gcc-c ++
2 install ntfs-3g plug-in
3
Cp/etc/fstab. bak
Vim/etc/fstab
Add these two statements at the end of the file. Save and restart.
/Dev/sda6/media/e ntfs-3g defaults 0
What to do after CentOS is installedI usually choose liveCD for CentOS x86-64 to install ~Because I use liveCD as a desktop, liveCD not only has a graphical interface after installation, but also has complete desktop configuration and not many
Uninstall, install, and test mysql in CentOSMysql uninstallYum remove mysql-server mysql-libs compat-mysql51Rm-rf/var/lib/mysqlRm/etc/my. cnfCheck whether there is any mysql software:Rpm-qa | grep mysqlIf yes, continue to deleteInstall Mysql1> if
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