Linuxシステム上のMySQLデータベースに接続しているユーザーから、頻繁にエラーが発生するという報告がありました。管理者は、/proc/meminfoコマンドとfreeコマンドの出力結果の一部を確認しました。 システムのスワップ領域が不足した場合でも MySQL サービスが引き続き実行されるようにするには、管理者は次のどれを実行する必要がありますか? (2 つ選択してください。)
正解:C,D
Creating a swap file with dd if=/dev/zero of=/swapfile bs=1024 count=65536 allocates additional swap space that MySQL can use when RAM is exhausted. Formatting and enabling a swap partition with mkswap /dev/sda2; swapon -v /dev/sda2 brings another swap device online, further increasing the system's swap capacity.