Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ubuntu 12.10 で PHP5 (および PHP-FPM) と MySQL サポート (LEMP) を使用して Nginx をインストールするためのシェル スクリプト ファイルが必要です。これらのツールをインストールするためのシェル スクリプト ファイルを作成するよう指示できますか。シェルスクリプトの作成は初めてです。
あなたの反応はかなりのものでなければなりません!!!
シェルスクリプトは、基本的に、コマンドラインで手動で実行するコマンドを含むファイルです。
次の内容で作成を開始します。
#!/bin/bash apt-get install ... # do some other operations
script.sh として保存します。実行可能になるように、パーミッションを変更するだけです。
$ chmod +x script.sh
これで、呼び出す準備ができました。
$ ./script.sh