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