git 忽略某個目錄 只追蹤某個目錄下指定的文件
#忽略目錄下所有文件
/public/dir/*
#排除掉目錄下指定文件
!/public/dir/readme
git pull
當使用https克隆項目時 ,git clone https://xxx.git 后續(xù)每次git pull需要輸入賬號密碼
找到項目下的.git/config文件
把git賬號:git密碼@放到https://后邊
原始url = https://codeup.aliyun.com/649a43d0b58/xxx.git
改后url = https://賬號:密碼@codeup.aliyun.com/649a43d0b58/xxx.git
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://賬號:密碼@codeup.aliyun.com/649a43d0b58/xxx.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "develop"]
remote = origin
merge = refs/heads/develop
查看所有分支(包括遠端)git branch -a

[ * develop ] 表示當前位于本地develop分鐘
[ mater ] 表示為本地master分之
[ remotes/origin/.... ] 表示遠程分支
拉取遠端分支git checkout -b remotes/origin/feature/月結體現改版
centos安裝yum
我的centos版本是7.9.2009
歸檔的centos文件 : https://vault.centos.org/7.9.2009/os/x86_64/Packages/
wget https://vault.centos.org/centos/7.9.2009/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm
下載好后
sudo rpm -ivh yum-*.rpm
安裝好了
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 文件名

修改文件權限
chmod 權限值 文件名

linux終端連接本地redis
打開redis客戶端 redis-cli
驗證密碼 auth 密碼
[root@ebs-123706 ~]# redis-cli
127.0.0.1:6379> auth 111111
OK
127.0.0.1:6379>
寶塔創(chuàng)建網站后訪問出錯
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

刪除.user.ini文件即可

查看文件最后100行
tail -n 100 filename
實時查看日志文件的輸出
tail -f filename
查看當前目錄各個文件大小
du -sh *
查看git中被忽略的文件受到那個ignore影響
git check-ignore -v -- ${file}