yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake
yum -y install wget httpd-tools vim
yum install zlib zlib-devel
yum install openssl openssl-devel
常用命令
创建app、download、logs、work、backup目录
cd /opt;mkdir app download logs work backup
中文目录名改为英文
export LANG=en_US
xdg-user-dirs-gtk-update
export LANG=zh_CN.UTF-8
查询gcc软件包匹配的名字
yum list|grep gcc
查询Nginx程序名
whereis nginx
查询某个目录下的所有文件
rpm -ql nginx
安装Nginx
添加资源库
vim /etc/yum.repos.d/nginx.repo
黏贴下方代码
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key按esc,输入:wq!,回车
sudo yum install nginx