1. Use the SSH Remote Connection tool to log on to the system and view the disk status using the Fdisk-l command
Here you can see two hard drives hda and HDB, the first hard drive HDA is installed system. HDB hard drive is not partitioned
CentOS Yum Source has no git, can only compile their own installation, now record the contents of the compilation installation, left to their own memo.
Make sure that the dependent packages are installed
Yum Install CurlYum Install Curl-develYum
Boot system, press the ESC key on the keyboard before entering the system, enter the following interface
Press the e key on the keyboard and the following interface appears
Use the arrow keys on the keyboard to move the cursor to the second
After installing the Nginx, the reboot requires "Kill-hup Nginx process number" to reload, which is obviously inconvenient. It would be much easier to manage it directly through scripting, like Apache.
Nginx official had already thought well, also
Two dependent packages Ncurses-devel and libevent (2.0.10 version above):
The code is as follows
Copy Code
Yum Install-y ncurses-develwget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gzTar
Add VirtualBox Source
The code is as follows
Copy Code
Cd/etc/yum.repos.dwget Http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Add Rpmforge Source
The code is as follows
Copy
Checking user logon Records
More/var/log/secureWho/var/log/wtmp
Check System daemon
Check/etc/inetd.conf file, input: cat/etc/inetd.conf | Grep–v "^#", the output information is the remote service that your machine opens.
A general intruder can
Temporarily disable users in Linux
1. In the/etc/passwd file, locate the disabled user in the row, add # at the beginning of
/etc/passwd
#coderbolg: X:500:500::/home/coderbolg:/bin/bash
2. In the/etc/shadow file, locate the disabled user row,
I installed the minimal version of the usual minimal version of CentOS does not have network Tools installed, this command does not exist with the Sbin directory. At this point the system will prompt:
# ifconfig
If this problem occurs, we can see that crontab is not installed. We can install the following cron.Install crontabYum install-y vixie-cronRun the preceding command to installCheck whether the installation is successful.Crontab-lCheck whether it is
These two Angels used the locomotive to collect some data because they generated a lot of SQL files. I want to replace the fixed content in each SQL file with another content.Manual file configuration change is a bit impractical, so google, find a
The system prompts a segment error (core dumped) during yum install or yum update today, and then stops running. The code is as follows:Copy code [Root @ lee ~] # Yum-y updateLoaded plugins: fastestmirror, refresh-packagekitDetermining fastest
1. Install Apache2One command:Yum-y install httpdAfter you press enter, yum will prompt the currently installed httpd version and update it automatically. If not, yum will automatically install it. Note that in yumEnter "Y" during installation to
Check whether to open an IPV6 account1. Check whether ipv6 is enabled in the system.A) view the Eni attributesCommand: ifconfigNote: "inet6 addr:..." is available :....... The ipv6 feature is enabled.B) view the information loaded by the kernel
Install lrzsz under centos, and then input the corresponding command to upload and download files using xshell. Installation Command: yum install lrzsz The following figure shows the effect after installation. Use the lz command as an example
Note: Server operating system: CentOS 6.x Server IP address: 192.168.21.134 Purpose: 1. Install and configure the SVN service on the server; 2. Configure the SVN service to support both http and svnserve independent servers of Apache; 3. The http
I. Source code installation1. Download the source code (visit the official website to view the latest version)Wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz2. Decompress the source codeTar xzvf node-v * & cd node-v *3. Install necessary
Example 1: website stress testing tool webbenchWget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gzTar zxvf webbench-1.5.tar.gzCd webbench-1.5Make & make installUsage:Webbench-c 500-t 300Parameter description:-c indicates the number of
Generally, dncp is not configured in the production environment. It is usually configured once, once and for all. Then, write down how to configure the static address:Nic configuration files are placed under/etc/sysconfig/network-scripts, you can
Compile and install node. jsWget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gzTar zvxf node-v0.8.5.tar.gzCd node-v0.8.5./ConfigureMake & make installModify the wget version by yourself.Run the yum command to installYum install
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