设置Web效劳器
server{listen80;server_nameyourdomain.com;root/path_to_tomato_community/public;indexindex.phpindex.html;location/{try_files$uri$uri//index.php?$query_string;}location~\.php${includesnippets/fastcgi-php.conf;fastcgi_passunix:/var/run/php/php7.4-fpm.sock;}location~/\.ht{denyall;}}
确保将yourdomain.com和/path_to_tomato_community替换为您的现实域名和装置路径。
.env.example.env
使用文本编?辑器翻开.env文件,并凭证您的数据库和效劳器设置举行修改:
DB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=tomato_dbDB_USERNAME=your_db_usernameDB_PASSWORD=your_db_passwordAPP_NAME=TomatoCommunityAPP_ENV=productionAPP_KEY=base64:your_app_keyAPP_DEBUG=falseAPP_URL=http://yourdomain.com
确保替换your_db_username、your_db_password和your_app_key为您自己的数据库用户名、数据库密码和应用密钥。
设置文件权限
确保您的文件和目录具有适当的权限,以阻止清静问题和功效失效。建议使用以下下令设置权限:
sudochown-Rwww-data:www-data/path_to_tomato_communitysudochmod-R755/path_to_tomato_communitysudochmod777/path_to_tomato_community/storagesudochmod777/path_to_tomato_community/bootstrap/cache
设置文件权限
确保您的文件和目录具有适当的权限,以阻止清静问题和功效失效。建议使用以下下令设置权限:
sudochown-Rwww-data:www-data/path_to_tomato_communitysudochmod-R755/path_to_tomato_communitysudochmod777/path_to_tomato_community/storagesudochmod777/path_to_tomato_community/bootstrap/cache
校对:陈嘉倩(1C0m4pJyqZtPma0S7t9ZFfz4hTykKag)


