欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > linux >内容正文

linux

CentOS7,linux下nginx的安装过程——1.安装pcre与nginx——源码

发布时间:2024/8/26 linux 51 豆豆
生活随笔 收集整理的这篇文章主要介绍了 CentOS7,linux下nginx的安装过程——1.安装pcre与nginx——源码 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

[root@localhost ~]# whoami
root
[root@localhost ~]# cat/etc/redhat-release
-bash: cat/etc/redhat-release: 没有那个文件或目录
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@localhost ~]# uname -r
3.10.0-123.el7.x86_64
[root@localhost ~]# uname -m
x86_64
[root@localhost ~]# yum install pcre pcre-devel -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
软件包 pcre-8.32-17.el7.x86_64 已安装并且是最新版本
软件包 pcre-devel-8.32-17.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@localhost ~]# rqm -qa pcre pcre-devel -y
-bash: rqm: 未找到命令
[root@localhost ~]# rpm -qa pcre pcre-devel -y
rpm: -y: 未知的选项
[root@localhost ~]# rpm -qa pcre pcre-devel
pcre-8.32-17.el7.x86_64
pcre-devel-8.32-17.el7.x86_64
[root@localhost ~]# cd /home/root
-bash: cd: /home/root: 没有那个文件或目录
[root@localhost ~]# cd /home
[root@localhost home]# ls
x1141603665
[root@localhost home]# mdkir holybear/
-bash: mdkir: 未找到命令
[root@localhost home]# mkdir holybear/
[root@localhost home]# ls
holybear x1141603665
[root@localhost home]# cd /home/holybear/
[root@localhost holybear]# mkdir tools
[root@localhost holybear]# cd tools/
[root@localhost tools]# wget -q http://nginx.org/download/nginx-1.6.3.tar.gz
[root@localhost tools]# ls
nginx-1.6.3.tar.gz
[root@localhost tools]# ls-lh
-bash: ls-lh: 未找到命令
[root@localhost tools]# ls -lh
总用量 788K
-rw-r–r– 1 root root 787K 4月 8 2015 nginx-1.6.3.tar.gz
[root@localhost tools]# tar xf nginx-1.6.3.tar.gz
[root@localhost tools]# cd nginx-1.6.3
[root@localhost nginx-1.6.3]# ls
auto CHANGES.ru configure html man src
CHANGES conf contrib LICENSE README

总结

以上是生活随笔为你收集整理的CentOS7,linux下nginx的安装过程——1.安装pcre与nginx——源码的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。