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 ...
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