首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

服务器SecureCRT连接失败怎么办?

服务器安装Linux系统,可以使用SecureCRT远程输入命令管理,但使用过程中有时候会出现连接失败的故障,要怎么办呢?亚洲云小编在这里总结几个常见故障以及解决办法。 1、网络链接   当主机使用无线网时,网络连接设置为桥接模式   当主机使用以太网时,网络连接设置为NAT模式   最重要的是开启VM的网络服务   windows的服务 services.msc中打开 VMware NAT Service 2、Linux网络配置   可以使用固定IP,此时设置的IP要与Windows主机的IP在同一网关下   sudo vi /etc/network/interfaces   内容如下:   auto lo   iface lo inet loopback   auto eth0   iface eth0 inet static   address 192.168.255.101   netmask 255.255.255.0   gateway 192.168.255.1   也可以使用自动获取IP   直接删掉刚才vi编辑的文件最后的部分,只留前两句   auto lo   iface lo inet loopback   然后重启网络   sudo /etc/init.d/networking restart   使用 ifconfig查看网络IP,是否是同一网关的,使用ping 主机IP是否通路 3、Linux启动SSH服务   如果Linux没有启动这个服务就算你在SecureCRT上设置完成也无法链接成功,因为Linux还没有支持   先使用sudo apt-get update 指令更新一下源然后使用   sudo apt-get install openssh-server //安装SSH服务   安装SSH服务,查看服务是否开启   sudo ps -e | grep ssh //查看SSH服务   sudo service ssh start //启动SSH服务   如图为已经开启了SSH服务的打印 4、设置SecureCRT   在以上流程做完后设置基本不会遇到问题,如果遇到问题看看前边的步骤是否完成   在SecureCRT上新建一个快速链接,选择SSH   然后输入登录名和密码,然后会出现一个接受什么授权,就算是创建成功了   总结:网络配置时,注意IP的设定以及设定完后重启网络;注意SSH服务,如果Linux上SSH服务没有开启,SecureCRT会出现链接不成功,且窗口打印出一串方框,需要联系主机商解决。

02

Thrift编译错误('::malloc' has not been declared)

问题版本:0.9.0 make[4]: Entering directory `/tmp/X/thrift-0.9.0/lib/cpp' /bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I/usr/local/thirdparty/boost/include -I./src -I./src/thrift -I/usr/local/thirdparty/openssl/include -Wall -g -O2 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c -o Thrift.lo `test -f 'src/thrift/Thrift.cpp' || echo './'`src/thrift/Thrift.cpp libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/thirdparty/boost/include -I./src -I./src/thrift -I/usr/local/thirdparty/openssl/include -Wall -g -O2 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c src/thrift/Thrift.cpp  -fPIC -DPIC -o .libs/Thrift.o In file included from src/thrift/Thrift.cpp:22: /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cstdlib:119: error: '::malloc' has not been declared /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cstdlib:127: error: '::realloc' has not been declared src/thrift/Thrift.cpp: In member function 'void apache::thrift::TOutput::printf(const char*, ...)': src/thrift/Thrift.cpp:46: error: 'malloc' was not declared in this scope make[4]: *** [Thrift.lo] Error 1 解决方法: 在成功执行configure后(在未执行configure之前找不到下列两行),修改与configure同目录下的config.h文件,将文件中的如下两行注释掉: #define malloc rpl_malloc #define realloc rpl_realloc 附1:安装Thrift命令行: ./configure --prefix=/usr/local/thirdparty/thrift-0.9.0 --with-boost=/usr/local/thirdparty/boost --with-libevent=/usr/local/thirdparty/libevent CPPFLAGS="-I/usr/local/thirdparty/openssl/include" LDFLAGS="-ldl -L/usr/local/thirdparty/openssl/lib" --with-qt4=no --with-c_glib=no --with-csharp=no --with-erlang=no --with-perl=no --with-ruby=no --with-haskell=no --with-go=no --with-d 当OpenSSL未以默认安装目录时,请注意上面的用法。 附2:相关博文: (安装thrift时,注意openssl参数)http://blog.chinaunix.net/uid-20682147-id-3399150.html 如果在使用Thrift时,编译遇到类似“TTransport.h:107: error: 'uint32_t' does not name a type”的错误,只需要在Thrift.h文件中增加一行:#include 。 Thrift.h文件位于make install后的include目录下,如果不知道在哪,可以使用find命令查找。

03
领券