CentOS under KVM Trial
Recently tidied up the company's several servers, because the machine less application, always feel the server resource is tight, so the pain determined to use the virtual machine. Examined the decision to use KVM, because
These two days to do lamp when found selinux such a thing, send a closed method!
Ways to turn off SELinux:
Modify the Selinux= "" in the/etc/selinux/config file as disabled and reboot.
If you do not want to reboot the system, use the command
actual size resolution of partition type partition
Swap partition 2G (memory is 1G, generally twice times the memory)
/1g-2g (Minimum 150–250MB)
/boot 32m-100m (boot partition, up to 100M only)
/OPT 100m-1g (Additional application)
/tmp 40m-1000
In the virtual machine VM installed CentOS system, network card selection bridge mode.
At the beginning of the time can also automatically obtain the IP address, suddenly one day the IP disappeared, and then how to restart can not get the IP
Objective
Because of the need to centrally deploy CentOS in a tidal x86 server to build a large data platform based on Hadoop, usually contact SLEs (SuSE Linux Enterprise server) More and implemented automated installation of CD-ROM or PXE network
Yum is the default package Manager on Red Hat based systems such as CentOS, Fedora, and RHEl. With yum, you can install or update an RPM package, and he will automatically resolve the package dependencies. But what if you just want to download an
1. Install Nginx
1.1 Select stable version
We compile and install Nginx to customize our own modules, machines CentOS 6.2 x86_64 . First install the missing dependency pack:
# yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl
We must understand: Minimal permissions + minimum service = maximum security
Therefore, regardless of the configuration of any server, we must turn off the unused services, set the system permissions to the minimum, so as to ensure the maximum
Minimize the installation of the system first.
First, the system agreement
Software source code Package storage location
/usr/local/src
Source Package compilation Installation Location (prefix)
Recently, due to project requirements, the server upgraded from CentOS6 to CentOS7, and the corresponding PHP version was upgraded to PHP5.6. We are familiar with the LEMP environment one-click installation package, but this article we will install
Premise
Installing phpMyAdmin on CentOS, you first need to set up a Web server (such as Apache or Nginx) to install the MYSQL/MARIADB database and PHP. Depending on your preferences and needs, you can choose an installation from lamp and lemp.
Installing Domino server on a Linux system is a small challenge, in fact, not everyone think of the complex, since it is commercial software, OEM has been for us to solve the difficulty of installation, there is to choose their own familiar with the
Backup points
Consideration of backup Data
Problems caused by system corruption:
Hardware problem: Hard Drive damage
Software problems: Accidental deletion, security attack,
Different host roles, different backup tasks
Backup factor
Long-standing space environment configuration forget almost, today Hollow finishing, reset the disk to rebuild the environment, first installed in CentOS 7.0 MARIADB database, here to record the installation process for later review.1, installation
First, download the latest version of Linux CentOS1. Open the official website address:http://www.centos.org/, click Downloads->mirrors2. Click CentOS PublicMirror List3. ClickSouth American, Asian, Oceania, Middle Eastern, African and other
1. Tzselect[[email protected] etc]# tzselect---Select the time zone command please identify a location so it time zone rules can beSetcorrectly. pleaseSelecta continent or ocean.1) Africa2) Americas3) Antarctica4) Arctic Ocean5) Asia6) Atlantic
One, Python installationCentOS comes with python2.7.5, this step can be omitted.Second, Python-pipPip--python index package, lifetimes Linux yum, installs the Management Python software pack.Yum Install Python-pip python-develThird, installation
First, IntroductionThe default SSH port for CentOS 7.3 Mini system is TCP 22 port, and for security reasons, the default 22 port is often modified for other ports. General city by modifying the/etc/ssh/sshd_config file, the file inside the "#Port 22"
In CentOS, yum cannot find a package. How can this problem be solved?
The simplest way to install software on CentOS is to install software through yum. This method solves the problem of package usage (recommended ), however, sometimes the yum
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