笔记:部分软件安装下载地址
一、安装CentOS7.4
地址 http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
1.安装步骤说明
使用命令 /dev
启动时如果不能直接安装,可能是盘符问题,可以尝试以下步骤
第一步 进入命令行,检查 U 盘的盘符 在 linux 安装页面,在第一项 install centos7 中按 tab 对安装指令进行调整 vmlinuz initrd=initrd.img linux dd quiet 确认盘符后,可以按 c 返回,如果不行重启机器即可 第二步 安装 在 linux 安装页面,在第一项 install centos7 中按 tab 对安装指令进行调整 ( 我的 U 盘的盘符为 sdc4 ) vmlinuz initrd=initrd.img inst.stage2= hd:/dev/sdc4 quiet
第三步 安装过程中需要注意的事情
语言选择中文
如果是新手的话,选择桌面(方便操作,部署完成后,桌面就不要启动,避免占用系统资源)
注意把网卡打开,时间调整好网络时间,把主机名设置好(重要要标志好每台机器的作用),设置好静态IP(重要) ,
安装centos7.4的详细操作文档请参考:《Centos7 安装详细说明.docx》在同一目录下
2.Linux桌面相关
安装桌面 请自行百度 或:https://jingyan.baidu.com/article/0964eca26fc3b38284f53642.html
切换默认启动环境时的命令(需要root权限)
systemctl set-default multi-user.target //设置成命令模式
systemctl set-default graphical.target //设置成图形模式
二、安装开发工具
linux 安装时,需要确认yum列表中是否有支持,如果没有支持,则需要更新源
样例如下
yum list | grep php*
检查对应软件是否(yum)安装,可以使用
rmp -ql xxxx
或者
find / -name xxx
使用yum安装的好处是可以帮助检查依赖
1.nginx
最新版本:http://nginx.org/en/download.html
本次安装的是nginx-1.12.2
yum安装
rpm -ivh http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.12.2-1.el7_4.ngx.x86_64.rpm
yum install nginx
检查 rmp -ql nginx
2.php
最新版本:http://www.php.net/downloads.php
1.linux下安装,
yum -y remove php*
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-opcache php72w-pdo php72w-xml php72w-pear php72w-redis php72w-phpunit-PHPUnit php72w-bcmath
XHProf是一个分层PHP性能分析工具
PHPUnit 测试
opcache 加速
MariaDB 10.2.13 (非集群)
地址: https://mariadb.com/kb/en/library/mariadb-10213-release-notes/
yum -y install mariadb mariadb-server
https://mirrors.ustc.edu.cn/mariadb/yum/10.2/centos7-amd64
1 / 3