当前位置:网站首页>Build php7 private warehouse
Build php7 private warehouse
2022-07-28 06:50:00 【Echo go ahead】
build PHP7 Private warehouse
One 、 Server configuration
1. Edit site configuration
# 1. install nginx
* ~ yum install nginx -y
# 2. Edit profile
* ~ cat /etc/nginx/conf.d/file.conf
server {
server_tokens off;
listen 80;
server_name file.wangrengang.pro;
location / {
root /html/file;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
}
}
# 3. start-up nginx
* ~ systemctl enable --now nginx
2. Create warehouse Directory
* ~ mkdir -p /html/file/Package/
# The warehouse directory is placed in nginx Configured download page , To provide http visit
3. Ready to install the package
# 1. Configure third-party sources
* ~ rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
* ~ rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
# 2. download PHP Software to warehouse directory
* ~ yum install -y --downloadonly --downloaddir=/html/file php71w-cli php71w-common php71w-devel php71w-embedded php71w-gd php71w-mcrypt php71w-mbstring php71w-pdo php71w-xml php71w-fpm php71w-mysqlnd php71w-opcache php71w-pecl-memcached php71w-pecl-redis php71w-pecl-mongodb php71w-json php71w-pecl-apcu php71w-pecl-apcu-devel # This operation only downloads rpm package
4. Create index information
# 1. install createrepo
* ~ yum install createrepo -y
# 2. Create index information
* ~ createrepo /html/file/Package
# /html/file/Package The directory is the software directory , This directory must contain software packages , Can be generated correctly repodata Catalogue and data information
explain :
The software warehouse must contain
repodata( Package index information , This directory name must berepodata) And the software package directory ( This directory does not require a name )Create in the warehouse directory
repodata, Make it ayumIdentifiable warehouse
Two 、 Client configuration
1. Prepare self built warehouse documents
* ~ cat /etc/yum.repos.d/rengang.repo
[Rengang] # Warehouse name
name=rengang PHP7 repo # About the warehouse
baseurl=http://file.wangrengang.pro/Package/ # Warehouse address
enabled=1 # Enable warehouse
gpgcheck=0 # Disable signature verification
explain :repo In the warehouse file , Don't use Chinese and notes , When copying this article , Please delete the Chinese information
2. Generate warehouse cache
* ~ yum clean all
* ~ yum makecache
3. Check warehouse information
* ~ yum repolist all
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
repo id repo name status
Rengang rengang PHP7 repo enabled: 31 # Warehouse identification is normal

4. install PHP7.1 Software
* ~ yum install php71w-cli php71w-common php71w-devel php71w-embedded php71w-gd php71w-mcrypt php71w-mbstring php71w-pdo php71w-xml php71w-fpm php71w-mysqlnd php71w-opcache php71w-pecl-memcached php71w-pecl-redis php71w-pecl-mongodb php71w-json php71w-pecl-apcu php71w-pecl-apcu-devel

explain : take repo File upload to server , You can download directly after using , Instead of editing the warehouse file
# 1. Upload files to the server
* ~ scp -rp /etc/yum.repos.d/rengang.repo [email protected]:/html/file/Package
# 2. The client can download and use
* ~ wget -c -P /etc/yum.repos.d/ http://file.wangrengang.pro/rengang.repo
边栏推荐
猜你喜欢

Analysis of reentrantlock source code of AQS

Graphic pipeline foundation (part outside)

Mongodb quick start

单元测试框架Jest搭配TypeScript的安装与配置

prometheus监控nacos

技术分享 | 接口测试常用代理工具
![[C language] dynamic memory management](/img/bb/2ec65b38e85f53269dc03d885d70f4.png)
[C language] dynamic memory management

How to calculate the size of structure, segment and Consortium (common body)
![[hash table basics]](/img/8f/54a4780a02f81e5de3d92c25248e1e.png)
[hash table basics]

搭建PHP7私有仓库
随机推荐
软件测试(概念篇)
QGraphicsView提升为QChartView
订单交易简析
[dynamic planning -- the best period series for buying and selling stocks]
feignclient @RequestMapping参数设置及请求头简易方式设置
数组转链表
[C note] data type and storage
File operation in C language
yapi漏洞挂马程序chongfu.sh处理
[C language] custom structure type
[queue, simple application of stack ---- packaging machine]
Leetcode brush questions diary sword finger offer II 047. Binary tree pruning
mongo ssl 配置实战
Source code analysis of countdownlatch of AQS
技术分享 | 实战详解接口测试请求方式Get、post
SSAO by computer shader (I)
Redis cache design and performance optimization
小tips
[explain in detail how to realize Sanzi chess step by step]
PKU-2739-Sum of Consecutive Prime Numbers(筛素数法打表)