Skip to content

Instantly share code, notes, and snippets.

@mindcont
Last active April 27, 2017 07:20
Show Gist options
  • Select an option

  • Save mindcont/881500115c37eed438a869ea44dcac07 to your computer and use it in GitHub Desktop.

Select an option

Save mindcont/881500115c37eed438a869ea44dcac07 to your computer and use it in GitHub Desktop.
nginx、php7、mysql 安装指南

nginx

To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:

CentOS:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

php7

yum -y install php70w-fpm php70w-cli php70w-gd php70w-mysql php70w-pear php70w-xml php70w-mbstring php70w-pdo php70w-json php70w-pecl-apcu php70w-pecl-apcu-devel

mysql

yum install mysql mysqld

配置DNS

sudo su
vi /etc/resolvconf/resolv.conf.d/base

添加

nameserver 123.206.61.167
nameserver 120.27.103.230

重新配置 /etc/resolv.conf

sudo resolvconf -u

查找大文件

find / -type f -size +50M  -print0 | xargs -0 ls -l

查看端口

sudo su
netstat -nlp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment