Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS安装nginx #69

Open
toplhy opened this issue Jul 11, 2024 · 0 comments
Open

CentOS安装nginx #69

toplhy opened this issue Jul 11, 2024 · 0 comments
Labels

Comments

@toplhy
Copy link
Owner

toplhy commented Jul 11, 2024

  1. 安装依赖包
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
  1. 下载并解压安装包
//创建一个文件夹
cd /usr/local
mkdir nginx
cd nginx
//下载tar包
wget http://nginx.org/download/nginx-1.13.7.tar.gz
tar -xvf nginx-1.13.7.tar.gz
  1. 安装nginx
//进入nginx目录
cd /usr/local/nginx
//进入目录
cd nginx-1.13.7
//执行命令 考虑到后续安装ssl证书 添加两个模块
./configure --with-http_stub_status_module --with-http_ssl_module
//执行make命令
make
//执行make install命令
make install
@toplhy toplhy added the Linux label Jul 11, 2024
@toplhy toplhy closed this as completed Jul 11, 2024
@toplhy toplhy reopened this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant