2024-05-05
技术小刊
00

目录

切换root
更新系统
安装nginx
安装docker
安装 docker-compose
安装php

微弱差别,细心对待

切换root

c
su -

更新系统

c
yum update python --version wget https://bootstrap.pypa.io/pip/2.7/get-pip.py python get-pip.py pip -V

安装nginx

c
yum install epel-release yum install nginx systemctl start nginx

安装docker

c
yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum install docker-ce docker-ce-cli containerd.io systemctl start docker systemctl enable docker

安装 docker-compose

c
sudo curl -L "https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose docker-compose -version

安装php

c
yum install epel-release yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-config-manager --enable remi-php74 yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json systemctl start php-fpm systemctl enable php-fpm php -v
如果对你有用的话,可以打赏哦
打赏
ali pay
wechat pay

本文作者:seek

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!