This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 服务端: | |
| /usr/local/gSOAP/bin/wsdl2h -o calc.h http://www.genivia.com/calc.wsdl 从链接中生成 | |
| /usr/local/gSOAP/bin/wsdl2h -o calc.h calc.wsdl 从现有文件中生成 | |
| /usr/local/gSOAP/bin/soapcpp2 -i -Iimport calc.h 编译生成文件 | |
| c++ -o calcserver calcserver.cpp stdsoap2.cpp soapC.cpp soapcalcService.cpp | |
| 客户端 | |
| g++ -o calcclient calcclient.cpp soapC.cpp soapcalcProxy.cpp stdsoap2.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo a2enmod proxy && sudo a2enmod proxy_http | |
| <VirtualHost *:80> | |
| ServerName cloud.sanmen.home | |
| ProxyPreserveHost On | |
| ProxyPass / http://localhost:81/ | |
| ProxyPassReverse / http://localhost:81/ | |
| </VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo snap set nextcloud ports.http=81 ports.https=444 | |
| sudo apt-get update | |
| sudo apt-get install snap | |
| sudo apt-get install snapd | |
| sudo snap install nextcloud | |
| 但修改域名后,nextcloud登录有问题,修改这个文件sudo vim /var/snap/nextcloud/7658/nextcloud/config/config.php | |
| 'trusted_domains' => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.建立源码编译的目录 | |
| mkdir nginx-src && cd nginx-src | |
| 2.下载源码仓库 | |
| http://nginx.org/en/download.html 下载最新ngix | |
| git clone https://github.com/arut/nginx-rtmp-module.git | |
| 3.安装依赖 | |
| sudo apt install libpcre3 libpcre3-dev | |
| sudo apt install openssl libssl-dev | |
| 4.编译安装ngix | |
| ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1,列出某个IP地址所提供的共享文件夹 | |
| smbclient -L 198.168.0.1 -U username%password | |
| 2,像FTP客户端一样使用smbclient | |
| smbclient //192.168.0.1/tmp -U username%password | |
| 执行smbclient命令成功后,进入smbclient环境,出现提示符: smb:/> | |
| 这里有许多命令和ftp命令相似,如cd 、lcd、get、megt、put、mput等。通过这些命令,我们可以访问远程主机的共享资源。 | |
| get 从远程到本地 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.终端如何默认开启tmux | |
| 在终端的Edit里面的Profile Preference里面的Title and Command里面 | |
| 勾上Run a custom command instead of my shell | |
| 并且在 Custom command 里面填上 tmux 保存即可,这样便可以当运行终端时自动运行 tmux | |
| 2.利用tmux的各种强大的外部命令,我们就可以自定义脚本,自动化很多事情 | |
| #!/bin/bash | |
| tmux has-session -t robot | |
| if [ $? != 0 ]; then | |
| tmux new-session -s robot -n initrobot -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.Use the following commands to install Wine on your 64bit Ubuntu Linux system. First, enable i386 architecture: | |
| # dpkg --add-architecture i386 | |
| 2.install Wine via the Ubuntu Wine Team PPA repository where the current latest of this writing is 1.8. | |
| Please note that you still need to enable i386 repository as shown above: | |
| #add-apt-repository ppa:ubuntu-wine/ppa | |
| apt-get update | |
| apt-get install wine1.7 | |
| 3.open terminal c-a-t,run winetricks.then install app vs2010 |
NewerOlder