您的位置:首页 > 运维架构 > Nginx

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

2018-07-31 15:21 375 查看
版权声明:小熊变大熊记 https://blog.csdn.net/qq_36625652/article/details/81304149

[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

阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: