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的