日常

mac os 安装php7.3

首先安装brew

找到usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/[email protected] 文件
注释

brew install --build-from-source [email protected]

查看文件权限 ls -l 文件名

图片.png

修改文件权限

chmod 权限值 文件名

图片.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

图片.png

删除.user.ini文件即可

图片.png

查看文件最后100行

tail -n 100 filename

实时查看日志文件的输出

tail -f filename

查看当前目录各个文件大小

du -sh *

你可能感兴趣的:(日常)