Skip to content

Commit

Permalink
Merge pull request #796 from isucon/feature/docs-dollar
Browse files Browse the repository at this point in the history
feat: コマンドの先頭の$を消す
  • Loading branch information
tohutohu authored Dec 7, 2024
2 parents ddc65b0 + 7e3615e commit 2b2f4ec
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,21 +283,21 @@ $ sudo /opt/isucon-env-checker/envcheck
### 1. `isuride-go.service` を停止、無効化します

```sh
$ sudo systemctl stop isuride-go.service
$ sudo systemctl disable isuride-go.service
sudo systemctl stop isuride-go.service
sudo systemctl disable isuride-go.service
```

以下のコマンドでstopとdisableを両方行うことができます。

```sh
$ sudo systemctl disable --now isuride-go.service
sudo systemctl disable --now isuride-go.service
```

### 2. `isuride-{言語名}.service` を起動、有効化します

```sh
$ sudo systemctl start isuride-{言語名}.service
$ sudo systemctl enable isuride-{言語名}.service
sudo systemctl start isuride-{言語名}.service
sudo systemctl enable isuride-{言語名}.service
```

`{言語名}` には以下の言語名を指定してください。
Expand All @@ -315,16 +315,16 @@ $ sudo systemctl enable isuride-{言語名}.service
以下のコマンドでstartとenableを両方行うことができます。

```sh
$ sudo systemctl enable --now isuride-{言語名}.service
sudo systemctl enable --now isuride-{言語名}.service
```

#### PHPへの切り替え

ただし、PHPを使う場合のみ、systemdの設定変更の他に、次のようにnginxの設定ファイルの変更が必要です。

```sh
$ sudo ln -s /etc/nginx/sites-available/isuride-php.conf /etc/nginx/sites-enabled/
$ sudo systemctl restart nginx.service
sudo ln -s /etc/nginx/sites-available/isuride-php.conf /etc/nginx/sites-enabled/
sudo systemctl restart nginx.service
```

## データベース(MySQL)について
Expand All @@ -336,7 +336,7 @@ $ sudo systemctl restart nginx.service
リファレンス実装のMySQLに管理者権限で接続するには以下のようにします。

```sh
$ sudo mysql isuride
sudo mysql isuride
```

### データベースのデータの初期化
Expand All @@ -345,7 +345,7 @@ $ sudo mysql isuride
以下のコマンドでもデータベースのデータを初期化できます。

```sh
$ ~/webapp/sql/init.sh
~/webapp/sql/init.sh
```

初期化処理は用意された環境内で、ベンチマーカーが要求する範囲の整合性を担保します。
Expand All @@ -365,7 +365,7 @@ $ ~/webapp/sql/init.sh
`isuride`データベースを初期化するにはデータベースを`DROP DATABASE isuride`および`CREATE DATABASE isuride`で再作成し、以下のコマンドでテーブルの作成を行ったのち、データの初期化を行なってください。

```sh
$ cat webapp/sql/1-schema.sql | sudo mysql isuride
cat webapp/sql/1-schema.sql | sudo mysql isuride
```

## TLS証明書について
Expand Down

0 comments on commit 2b2f4ec

Please sign in to comment.