本文基于GitLab CI简介 & GitLab CI使用
FTP
Pure-FTPd
sudo apt install -y pure-ftpd
sudo pure-pw useradd admin -u op -d /home/op/
# Password: 123456
sudo pure-pw mkdb
cd /etc/pure-ftpd/auth
sudo ln -s ../conf/PureDB 60puredb
sudo /etc/init.d/pure-ftpd restart
ftp localhost
# admin | 123456
dir
LFTP
sudo apt install -y lftp
cd /tmp
echo "123" >> README.md
lftp -c "set ftp:ssl-allow no; open -u admin,123456 122.51.81.66:21; mkdir -p daily; cd daily; put README.md"
lftp ftp://admin@122.51.81.66:21
# 123456
ls
OSS
wget http://gosspublic.alicdn.com/ossutil/1.7.2/ossutil64
chmod 755 ossutil64
./ossutil64 config -e ${OSS_ENDPOINT} -i ${OSS_ACCESS_KEY_ID} -k ${OSS_ACCESS_KEY_SECRET} -L CH --loglevel debug -c ~/.ossutilconfig
# OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
./ossutil64 -c ~/.ossutilconfig mkdir oss://share-yl/daily
./ossutil64 -c ~/.ossutilconfig cp -r dist/ oss://share-yl/daily/
网友评论