上網找了一下解法...沒想到只要加一行指令就可以解掉了
修改前:
連線時會遇到500 OOPS錯誤
修改後:
編輯 /etc/vsftpd/vsftpd.conf 設定檔
vim /etc/vsftpd/vsftpd.conf
加入下面這一行
allow_writeable_chroot=YES
重新啟動 vsftpd service
systemctl stop vsftpd
systemctl start vsftpd
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD7Lia8ouGVdPFV28twNB6AyN_3fsI_zNBcdKkAz8vAg6G3p41flgGeZvddf4ntuTI7-UUC6UATv0XQZ3TvlMw9hnE5ERpD4R4Ml4cwmREaRYvFrKujk4vevPoAjbVNL51zkaGhQFt2tlX/s640/%25E6%2588%25AA%25E5%259C%2596+2019-11-22+16.03.59.png)
就可以正常連接了
Written by: AWS Community Builder Sheng Hau Wang (Kevin Wang) 一個菜鳥工程師的雲端學習歷程,把自己踩到的雷記錄起來,以淺顯易懂的方式告訴大家,讓大家不要再遇到一樣的問題
(被除役的UPS被我拿來接MOD 電視 PS4 Apple tv 用) |
sudo yum update -y && sudo reboot
sudo yum install zlib-devel libuuid-devel libmnl-devel gcc make git autoconf autogen automake pkgconfig
sudo yum install curl jq nodejs
cd ~
git clone https://github.com/firehol/netdata.git --depth=1
cd netdata
sudo ./netdata-installer.sh
ENTER
to start the installation.sudo firewall-cmd --permanent --zone=public --add-port=19999/tcp
sudo firewall-cmd --reload
http://<your-Vultr-server-IP>:19999
vim /etc/netdata/netdata.conf
* global - 服務的全域設定
* plugins - 啟用或停用插件
* plugin:NAME - 各個插件的設定
* CHART_NAME - 各個圖表的設定
以預設值就已經可以正常的運作了,而這些參數可以視狀況修改:
* update every = 1,每一秒更新一次
* default port = 19999,預設通訊埠在 TCP 19999
* bind to = *,不綁定 IPv4、IPv6 位址
* disconnect idle web clients after seconds = 60,Web Client 閒置 60 秒後就踢掉
* enable web responses gzip compression = yes,啟用網頁 GZip 壓縮功能
git config --global http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port
git config --global http.https://domain.com.proxy http://proxyUsername:proxyPassword@proxy.server.com:port
git config --global http.https://domain.com.sslVerify false
第一個要安裝
BeautifulSoup
套件lxml
套件與 requests
套件。lxml
套件是用來作為 BeautifulSoup
的解析器BeautifulSoup
可以支援的解析器其實不只一種html.parser
(Python 內建)與 html5lib
lxml
。[root@kevin /]# whereis python
python: /usr/bin/python /usr/bin/python2.7 /usr/bin/python.bak /usr/lib/python2.7 /usr/lib64/python2.7 /etc/python /usr/include/python2.7 /usr/share/man/man1/python.1.gz
[root@kevin bin]# ll python*
lrwxrwxrwx. 1 root root 9 5月 27 2016 python2 -> python2.7
-rwxr-xr-x. 1 root root 7136 11月 20 2015 python2.7
lrwxrwxrwx. 1 root root 7 5月 27 2016 python.bak -> python2
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make libffi-devel
libffi-devel
,因為只有3.7才會用到這個包,如果不安裝這個包的話,在make階段會出現如下的報錯:# ModuleNotFoundError: No module named '_ctypes'
yum -y install epel-release
#安装pip
yum install python-pip
pip install wget
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
#解壓縮
tar -zxvf Python-3.7.0.tgz
#解壓縮後,依序執行下面指令進行編譯
./configure prefix=/usr/local/python3
make && make install
#添加python3的link
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3.7
#添加 pip3 的link
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3.7
#測試是否成功
python -V
maildrop:本地郵件放置在maildrop中,同時也被拷貝到incoming中。 incoming:放置正在到達隊列或管理進程尚未發現的郵件。 active:放置隊列管理進程已經打開了並正準備投遞的郵件,該隊列有長度的限制。 deferred:放置不能被投遞的郵件。可能是推遲發送的郵件
/usr/sbin/postfix start
/usr/sbin/postfix stop
/usr/sbin/postfix check
postconf -n
/usr/sbin/postfix reload
mailq postqueue -p
mailq | wc -l postqueue -p | wc -l
postcat -q Queue_ID
/usr/sbin/postfix flush postqueue -f
postsuper -h Queue_ID postsuper -h ALL deferred
postsuper -H Queue_ID postsuper -H ALL deferred
postsuper -r Queue_ID postsuper -r ALL
postsuper -d Queue_ID
postsuper -d ALL
postsuper -d ALL deferred find /var/spool/postfix/deferred -type f -exec rm -vf {} \; # find /var/spool/postfix/defer -type f -exec rm -vf {} \;
find /var/spool/postfix/deferred -type f -exec ls -l --time-style=+%Y-%m-%d_%H:%M:%S {} \;
find /var/spool/postfix/deferred -type f -mtime +3 -exec rm -f {} \;
find /var/spool/postfix/defer -type f -mtime +5 -exec rm -f {} \;
tail -f /var/log/messages
tail -f /var/log/maillog