< 返回新闻公告列表

Ubuntu18.04系统中如何安装composer

发布时间:2022-12-5 11:46:28    来源: 纵横云

Ubuntu18.04系统中如何安装composer

在ubuntu18.04系统中如何安装composer呢?本文给出详细说明。

1.更新apt资源

sudo apt-get update

Ubuntu18.04系统中如何安装composer-845

2.安装composer依赖

sudo apt install wget php-cli php-zip unzip

Ubuntu18.04系统中如何安装composer-846

3.下载composer安装器

wget -O composer-setup.php https://getcomposer.org/installer

Ubuntu18.04系统中如何安装composer-847

4.安装composer到/usr/local/bin目录

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

Ubuntu18.04系统中如何安装composer-848
19906048601
19906048601 19906048601
返回顶部
返回顶部 返回顶部