Minimized installation CentOS7 + Xfce4 +php + nginx +MARIADB development environment

Source: Internet
Author: User

Virtual Machine Customization minimized installation, add user as Administrator, turn on auto get network, bridge mode.
All operations only command, do not explain, can not understand the self-search for relevant information.

# The line at the beginning is the comment line, # The empty line begins with the #, and I take a snapshot of my own machine. Not to be continued

1
To install the CentOS7 process:2 3 # Minimize installation Complete Snapshot4 5 sudo Yum Install-Ywget6 7# http://mirrors.163.com/.help/centos.html8 9 sudo MV/etc/Yum. repos.d/centos-base.repo/etc/Yum. repos.d/centos-Base.repo.backupTen wgethttp//Mirrors.163.com/.help/centos7-base-163.repo-o/tmp/centos-base.repo One sudo MV/tmp/centos-base.repo/etc/Yum. repos.d/centos-Base.repo A - sudo Yum Install-Y epel-Release - the sudo Yum Clean All - sudo YumMakecache - sudo YumUpdate - + sudo YumGroupinstall-y"X Window System" - sudo YumGroupinstall-y Xfce + A sudo Yum Install-y Firefox at sudo Yum Install-Y cjkuni-ukai-Fonts - - # - - sudo Yum-YInstallmariadb* - sudosystemctl start Mariadb.service in mysql_secure_installation - toMysql-u Root-P +CREATE USER'username'@'Host'Identified by'Password'; -GRANT privileges on Databasename.tablename to'username'@'Host'With GRANT OPTION; the *SHOW VARIABLES like'character%'; $ Panax Notoginseng#要修改的配置文件位于/etc/MY.CNF.D. Most of the web does not describe this folder, and the following files to be modified - the sudo VI/etc/my.cnf.d/client.cnf +#client. CNF joins default-character-set= in the [Client] sectionUTF8 A the sudo VI/etc/my.cnf.d/server.cnf +#server. CNF added character-set-server= in [mysqld] sectionUTF8 - $ sudosystemctl Restart mariadb $ sudoSystemctl Enable MARIADB - - Lsmod|greppiix4 the#i2c_piix422106 0 -#i2c_core40325 2drm,i2c_piix4Wuyi sudo VI/etc/modprobe. d/blacklist.conf the #新增一行 blacklist i2c_piix4 - reboot Wu - # About $ sudoFirewall-cmd--zone=public--add-port=3306/TCP--Permanent - sudoFirewall-cmd--Reload - - Sestatus A + sudo VI/etc/selinux/Config the#SELINUX =Enforcing #注释掉 -#SELINUXTYPE =targeted #注释掉 $selinux=Disabled #增加 the: wq!#保存退出 the the sudo VI/etc/modprobe. d/blacklist.conf the #加入 blacklist INTEL_RAPL - in sudo Yum Install-y Redis the sudo Yum Install-y nginx the sudo Yum Install-y php About sudo Yum Install-Y php-FPM the the sudoFirewall-cmd--zone=public--add-port=6379/TCP--Permanent the sudoFirewall-cmd--zone=public--add-port= the/TCP--Permanent + sudoFirewall-cmd--zone=public--add-port=8080/TCP--Permanent - sudoFirewall-cmd--Reload the Bayi # the the - -

Minimized installation CentOS7 + Xfce4 +php + nginx +MARIADB development environment

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.