mac os 安装php7.3
首先安装brew
找到usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/php@7.3.rb 文件
注释
brew install --build-from-source php@7.3
查看文件权限
ls -l 文件名
![](https://img.haomeiwen.com/i13300701/bb62fcd44183ef44.png)
修改文件权限
chmod 权限值 文件名
![](https://img.haomeiwen.com/i13300701/95f00b7dd44d2503.png)
linux终端连接本地redis
打开redis客户端 redis-cli
验证密码 auth 密码
[root@ebs-123706 ~]# redis-cli
127.0.0.1:6379> auth 111111
OK
127.0.0.1:6379>
宝塔创建网站后访问出错
Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/dgtapi/public/../storage/framework/maintenance.php) is not within the allowed path(s): (/www/wwwroot/dgtapi/public/:/tmp/) in /www/wwwroot/dgtapi/public/index.php on line 19
Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/dgtapi/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/dgtapi/public/:/tmp/) in /www/wwwroot/dgtapi/public/index.php on line 34
Warning: require(/www/wwwroot/dgtapi/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/dgtapi/public/index.php on line 34
Fatal error: require(): Failed opening required '/www/wwwroot/dgtapi/public/../vendor/autoload.php' (include_path='.:/www/server/php/73/lib/php') in /www/wwwroot/dgtapi/public/index.php on line 34
![](https://img.haomeiwen.com/i13300701/1ece5d66cc145951.png)
删除.user.ini
文件即可
![](https://img.haomeiwen.com/i13300701/5832c2d167a506c6.png)
查看文件最后100行
tail -n 100 filename
实时查看日志文件的输出
tail -f filename
查看当前目录各个文件大小
du -sh *
网友评论