嵌入式-基础二

SSH服务
检查安装了那些:dpkg –l |grep –i ssh #应安装 server 和client(自带)
安装:apt-get install openssh-server
提示解析失败原因:1.中途更换网络,重启解决。
2.改/etc/resolvconf/resolv.conf.d/base文件,
加入dns服务器地址:nameserver 202.96.134.133
nameserver 8.8.8.8
sudo /etc/init.d/ssh start # 启动服务

一个test.c文件的 预处理,编译,汇编,链接

#include<stdio.h>
int main()
{
  printf("wrap me in plastic \n");
}

法1:gcc -o test.exe test.c

  ./test.exe

法2:  gcc -E test.c > test.i  #预处理

    gcc -S test.i -o test.s  #编译

    gcc -c test.s -o test.o  #汇编

    gcc test.o -o test.exe  #链接

    ./test.exe        #执行

  

扫描二维码关注公众号,回复: 9553323 查看本文章

猜你喜欢

转载自www.cnblogs.com/wddx5/p/12402641.html