#!/bin/bash
echo Hello World!

PS E:\wwwroot\object> bash test.sh
Hello World!
#!/bin/sh
for i in $(seq 1 200);
do
echo "Install theme $i times"
php artisan theme-store-db:theme:install C:/Users/Lenovo/Downloads/theme "theme$i" blade --force
done

PS E:\wwwroot\object> bash themes.sh
themes.sh: line 2: $'\r': command not found
themes.sh: line 3: syntax error near unexpected token `$'\r''
'hemes.sh: line 3: `for i in $(seq 1 200);
PS E:\wwwroot\object>


PS E:\wwwroot\object> bash themes.sh
Install theme 1 times
LogicException : Please make sure the PHP Redis extension is installed and enabled.
at /mnt/e/wwwroot/object/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:77
73| protected function createClient(array $config)
74| {
75| return tap(new Redis, function ($client) use ($config) {
76| if ($client instanceof RedisFacade) {
> 77| throw new LogicException(
78| extension_loaded('redis')
79| ? 'Please remove or rename the Redis facade alias in your "app" configuration file in order to avoid collision with the PHP Redis extension.'
80| : 'Please make sure the PHP Redis extension is installed and enabled.'
81| );
Exception trace:
1 Illuminate\Redis\Connectors\PhpRedisConnector::Illuminate\Redis\Connectors\{closure}()
/mnt/e/wwwroot/object/vendor/laravel/framework/src/Illuminate/Support/helpers.php:422
2 tap()
/mnt/e/wwwroot/object/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:105
Please use the argument -v to see more details.
PS E:\wwwroot\object> php artisan theme-store-db:theme:install C:/Users/Lenovo/Downloads/theme theme blade --force
安装主题到数据仓库
主题theme安装成功
PS E:\wwwroot\object>
PS E:\wwwroot\object> bash themes.sh
Install theme 1 times
RedisException : Connection refused
at /mnt/e/wwwroot/object/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:137
133| $parameters[] = $context;
134| }
135| }
136|
> 137| $client->{($persistent ? 'pconnect' : 'connect')}(...$parameters);
138| }
139|
140| /**
141| * Create a new redis cluster instance.
Exception trace:
1 Redis::pconnect()
/mnt/e/wwwroot/object/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:137
2 Illuminate\Redis\Connectors\PhpRedisConnector::establishConnection()
/mnt/e/wwwroot/object/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:84
Please use the argument -v to see more details.
Install theme 2 times
^C
Linux 服务器运维、部署与线上故障排查
如果你的网站或后端服务部署在 Linux 服务器上,遇到访问异常、Nginx 配置问题、MySQL / Redis 异常、Docker 服务不可用、磁盘占满、CPU / 内存过高等问题,可以联系我做一次远程排查。
适合以下场景:
✅ 网站打不开或访问不稳定
✅ Nginx / PHP-FPM 配置异常
✅ MySQL / Redis 性能或连接问题
✅ Docker 服务部署与维护
✅ 服务器迁移与环境配置
✅ CPU / 内存 / 磁盘异常排查
服务内容:
✅ Linux 环境检查
✅ 网站部署与迁移
✅ Nginx / PHP-FPM / MySQL / Redis 排查
✅ Docker 配置与维护
✅ 服务器性能分析
✅ 长期远程运维支持
如需咨询,请联系我,并注明:Linux 运维咨询。
联系方式:
Telegram:@shuijingwan
微信:13980074657
邮箱:shuijingwanwq@gmail.com

发表回复