c盤清理的步驟是什么(如何清理C盤空間)
如何清理C盤空間怎么清理C盤的垃圾文件?每天上網會給電腦帶來很多臨時文件,這些垃圾文件不清理掉時間久了就會影響到電腦的運行速度。那怎
2022/12/08
(資料圖片僅供參考)
rinetd是為在一個Unix和Linux操作系統中為重定向傳輸控制協議(TCP)連接的一個工具。Rinetd是單一過程的服務器,它處理任何數量的連接到在配置文件etc/rinetd中指定的地址/端口對。盡管rinetd使用非閉鎖I/O運行作為一個單一過程,它可能重定向很多連接而不對這臺機器增加額外的負擔。使用iptables 很容易將TCP 和UDP 端口從防火墻轉發到內部主機上。但是如果您需要將流量從專用地址轉發到甚至不在您當前網絡上的機器上,又該怎么辦呢?可嘗試另一個應用層端口轉發程序,如rinetd。摘自:https://www.zhuguodong.com/?id=457
mkdir /rinted/ cd /rinted/wget https://github.com/samhocevar/rinetd/releases/download/v0.73/rinetd-0.73.tar.gztar zxvf rinetd-0.73.tar.gzcd rinetd-0.73 ./bootstrap ./configuremake && make install
cat >> /etc/systemd/system/rinetd.service << EOF[Unit]Description=rinetdAfter=network.target[Service]Type=forkingExecStart=/rinted/rinetd-0.73/rinetd -c /etc/rinetd.conf[Install]WantedBy=multi-user.targetEOFsystemctl daemon-reload
本地發布一個 nginx服務 kubectl create deployment nginx-test --image=nginx (--port=8099 svc 的端口)(--target-port=80 pod 內服務的端口) kubectl expose deployment nginx-test --port=8099 --target-port=80 此時我們可以通過cluster ip + 端口 ,本地訪文服務
假如說,現在我們想要讓外部環境訪文 (使用rinetd) (工作環境 ,大多是是使用 nodeport + rinetd )
vim /etc/rinetd.conf0.0.0.0 99 10.98.222.83 8099#解釋:將所有發往本機9998端口的請求轉發到192.168.186.200的80端口#配置文件格式很簡單:systemctl restart rinetd本地的訪文 master 節點 ip + 99