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.
OSX で Bitnami MAMP スタックを使用しており、Apache Web サーバーを起動するたびに tmp ディレクトリをクリアしたいと考えています。
基本的に、次のコマンド、またはコマンドを含むスクリプトを追加する場所を知る必要がありますrm -rf ~/Library/Containers/com.bitnami.mampstack/Data/app/php/tmp。
rm -rf ~/Library/Containers/com.bitnami.mampstack/Data/app/php/tmp
タック、 ロバート。
MAMP プログラム フォルダの中を見てください。./bin/start.sh があります。これに行を追加するだけです。または、Apache の再起動のみで実行する場合は、Apache.sh を開始します。