【已失效】安装 stable diffusion webui 的步骤

安装 stable diffusion webui 的步骤如下:

1. 首先,你需要安装 Git,如果你已经安装了 Git,请跳过此步骤。

- 在 Ubuntu 上安装 Git:sudo apt-get install git
- 在 CentOS 上安装 Git:sudo yum install git
- 在 macOS 上安装 Git:brew install git

2. 克隆 stable diffusion webui git 仓库。

- git clone

3. 安装 PHP 和 Composer。

- 在 Ubuntu 上安装 PHP 和 Composer:

sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.2 php7.2-cli php7.2-curl php7.2-mbstring php7.2-zip php7.2-xml composer

- 在 CentOS 上安装 PHP 和 Composer:

sudo yum install -y epel-release
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum install -y php72w php72w-cli php72w-common php72w-mbstring php72w-zip php72w-xml composer

- 在 macOS 上安装 PHP 和 Composer:brew install php composer

4. 运行 Composer 安装依赖项。

- 在克隆的仓库目录下运行以下命令:

composer install

5. 创建配置文件。

- 在克隆的仓库目录下,创建名为 `config_local.php` 的配置文件。
- 复制 `config.php.example` 的内容到 `config_local.php`。
- 根据需要更新配置项,例如数据库连接信息和 Diffusion 的 URL。

6. 启动 Web 服务器。

- 你可以使用内置的 PHP 开发 Web 服务器,也可以使用其他服务器软件。
- 使用内置的 PHP 开发 Web 服务器,可以在克隆的仓库目录下运行以下命令:

php -S localhost:8000 -t public/

- 在浏览器中访问 http://localhost:8000。

7. 登录。

- 访问 Diffusion 主页时,你将被重定向到登录页面。
- 默认情况下,只有管理员用户才能访问 Diffusion。在首次登录时,将首先要求您设置管理员密码。
- 登录后,您可以创建项目并添加存储库,当你添加存储库时,你可以选择使用 Diffusion 的 HTTP 或 SSH 访问方式。

搜索