嵌入式产品:启动
boot启动命令cat /proc/cmdlineconsole=ttyAMA0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/sbin/init sysremd.show_status=false g_ether.host_addr=82:cf:ce:fa:44:18 initrd=0x49000000,0x40000..
boot启动命令
cat /proc/cmdline
console=ttyAMA0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/sbin/init sysremd.show_status=false g_ether.host_addr=82:cf:ce:fa:44:18 initrd=0x49000000,0x400000 console=tty1 lcd=HDMI720p60
查看信息
cat /proc/cpuinfo # CPU
df -h # 存储
free -m # 内存
配置网络
ifconfig eth0 up # 启动指定的网络设备
ifconfig eth0 192.168.0.100 netmask 255.255.255.0 # 配置网卡的IP地址
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx # 配置网卡的MAC 地址(hw 代表hardware 硬件,ether 代表ethernet 以太网)
route add default gw 192.168.0.1 # 添加默认网关
设置DNS域名服务
cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 114.114.114.11
校正网络时间
ntpdate ntp.api.bz
ntpdate time.windows.com
ntpdate time.nist.gov
开机启动服务
在开机时启用一个服务: systemctl enable xxx.service
在开机时禁用一个服务: systemctl disable xxx.service
显示一个服务的状态: systemctl status xxx.service
启动一个服务: systemctl start xxx.service
关闭一个服务: systemctl stop xxx.service
重启一个服务: systemctl restart xxx.service
应用程序自启
在/etc/init.d/rc.local中添加
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)