Task Scheduler
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
fsutil.exe file setCaseSensitiveInfo linux\netfilter_ipv4 enable
fsutil.exe file queryCaseCaseSensitiveInfo D:\linux-3.0.35\include\linux\netfilter
route delete 0.0.0.0
route add 192.168.10.0 mask 255.255.255.0 192.168.10.1 -p
route add 0.0.0.0 mask 0.0.0.0 192.168.20.1 -p
route print
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.20.254 192.168.20.151 55
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.103 45
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
192.168.1.0 255.255.255.0 192.168.1.1 1
192.168.3.0 255.255.255.0 192.168.3.1 1
C:\boost_1_70_0>.\b2 --with-date_time link=static runtime-link=static
cl basic_ios_rdbuf.cpp /EHsc
#include <ios>
#include <iostream>
#include <fstream>
int main( )
{
using namespace std;
ofstream file( "rdbuf.txt" );
streambuf *x = cout.rdbuf( file.rdbuf( ) );
cout << "test" << endl; // Goes to file
cout.rdbuf(x);
cout << "test2" << endl; //normal
}
[[email protected]_0_5_centos frp_0.25.3_linux_amd64]# cat frps.ini
[common]
bind_port = xxxxxx
dashboard_port = xxxxxx
dashboard_user = xxxxxxxxxxxxxxxx
dashboard_pwd = xxxxxxxxxxxxxxxx
allow_ports = xxxxx-xxxxx
token = xxxxxxxxxxxxxxxx
max_pool_count = 10
pool_count = 3
[root@VM_0_5_centos frp_0.25.3_linux_amd64]# ./frps -c ./frps.ini
[email protected]:~/frp# cat frpc.ini
[common]
server_addr = qinuu.com
server_port = xxxxxx
token = xxxxxxxxxxxxxxxx
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = xxxxxx
[email protected]:~/frp# ./frpc -c ./frpc.ini
[root@VM_0_5_centos frp_0.25.3_linux_amd64]# cat /lib/systemd/system/frps.service [Unit] Description=Frp Server Service After=network.target [Service] Type=simple User=nobody Restart=on-failure RestartSec=5s ExecStart=/usr/local/frp/frp_0.25.3_linux_amd64/frps -c /usr/local/frp/frp_0.25.3_linux_amd64/frps.ini [Install] WantedBy=multi-user.targethis [root@VM_0_5_centos frp_0.25.3_linux_amd64]# systemctl start frps [root@VM_0_5_centos frp_0.25.3_linux_amd64]# systemctl enable frps [root@VM_0_5_centos frp_0.25.3_linux_amd64]# systemctl status frps
mkdir nfs_share mount -t nfs 192.168.xxx.xxx:/nfs_share /home/root/nfs_share umount nfs_share/