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——源码的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: linux系统中的目录讲解
- 下一篇: CentOS7,linux下nginx的