1、配置dns
2、lnmp环境搭建
3、nginx虚拟主机配置 查看nginx配置文件位置 nginx -t
# 总核数 = 物理CPU个数 X 每颗物理CPU的核数# 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数# 查看物理CPU个数cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l# 查看每个物理CPU中core的个数(即核数)cat /proc/cpuinfo| grep "cpu cores"| uniq# 查看逻辑CPU的个数cat /proc/cpuinfo| grep "processor"| wc -l# 查看CPU信息(型号)cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost
4、没有netstat命令
yum -y install net-tools
5、update user set authentication_string=Password('123456') where user="root";
6、安装进度:开始配置fpm
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
去掉25行 ;pid = run/php-fpm.pid 前面的分号,是之生效 user = nginx group = nginx listen = /dev/shm/php-fpm.sock listen.owner = nginx listen.group = nginx
安装进度:配置虚拟主机
free -m 查看内存使用情况 echo 3 > /proc/sys/vm/drop_caches
7、systemctl list-unit-files
systemctl list-unit-filessystemctl enablesystemctl disablesystemctl list-unit-files|grep sshd.service