If you're used to working on a Linux system, you'll find that there are a lot of text files in the Linux world. Configuration files and log files are usually in text format. These files usually have very long content and cannot be displayed in a
The problem is the following "Linode through the cloning of the server system and data and retain the IP address " in the migration room data, before I also remember to play the migration data to different rooms, also did not appear such a problem.
First, add a single IP address:
New file in/etc/sysconfig/network-scripts/ifcfg-eth0:*,* is number ordinal, multiple IP is increasing in sequenceTake 0 As an example to create a file ifcfg-eth0:0cd/etc/sysconfig/network-scripts/VI ifcfg-eth0:0Enter
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
1. Disallow root access via SSH telnetChange/etc/ssh/sshd_config file. Find the following sentence#PermitRootLoginYesbe replaced by the following;PermitrootloginNoNote that the # number is removed from the front.Restarting the SSHD
Ready to Yum a lamp environment, found that Yum version of MySQL is still a 5.1.x version, so ready to replace as MARIADB.
Configuration Source:
[Root@localhost ~]# Cat/etc/yum.repos.d/mariadb.repo# MARIADB 10.0 CentOS repository list-created 2013-
Level two domain name configuration
Git.dbpoo.com point to git repositories this directory/mnt/git/repositoriesGitweb.dbpoo.com directory pointing to Gitweb/usr/share/gitwebCan be configured via Apache VirtualHost
First, install Git
centos6.5
Let's take a look at free
[Root@localhost ~]# Free-mTotal used free shared buffers Cachedmem:32160 14212 17947 0 216 12096-/+ buffers/cache:1899 30260swap:8189 0 8189
32G of memory, but only the allocation of 8G swap, in the actual production
1. Modify the/etc/resolv.conf on the server so that its contents are only similar
NameServer 192.81.133.229NameServer 114.114.114.114
The resolv.conf of the problematic machine always contains addresses such as localhost or 127.0.0.1. That is,
Yesterday encountered a problem, in Linux there is a folder containing a large number of cache files (folders), the order of magnitude may be in millions, using RM-RF./* Delete Time is slow to unacceptable. Google for a while, found a way, the trial
Today, my colleagues asked me to help Mount NFS, the past two or three after the end, colleagues have to say that the NFS client does not write permissions, in the NFS directory to operate what is read-only, I think wrong ah, I have a few units have
Linux network Interface configuration file [/etc/sysconfig/network-scripts/ifcfg-eth0] here "0" is a unique number corresponding to a specified interface.
The code is as follows
Copy Code
Type=ethernet #网卡协议类型Device=eth0 #
1. Use rpm-qa| First The grep vsftpd command checks whether the installation is installed, and if FTP is not installed, use the Yum-y install VSFTPD installation (Ubuntu apt-get install)
After the installation, we will configure it for normal use.
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:
apache-2.2 with the new apache-2.4 installation is different, the 2.4 version has not come with the APR library, so the installation of apache-2.4 before the need to install a good apr.
1, download software
The code is as follows
Recently, in order to facilitate the management of the program, in the server installation Svnserver, scheduled to update the version regularly!
Windows Server 2008 used by the server environment the Linux for my client uses commands to operate on
After checking the information, it turns out that phpMyAdmin must have the 755 permission to work normally (777 is not available ).So the solution is as follows:Cd to the phpMyAdmin parent directory, The code is as follows:Copy code Chmod-R 755
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