
Linux
red98
这个作者很懒,什么都没留下…
展开
-
获取Linux内存页大小
系统命令获取 getconf PAGE_SIZE $ getconf PAGE_SIZE 4096 代码获取 头文件: <unistd.h> 代码 #include <unistd.h> #include <iostream> int main() { std::cout << "pagesize = " << getpage...原创 2020-01-06 16:35:05 · 534 阅读 · 0 评论 -
虚拟机中的CentOS7无法上网
虚拟机中的CentOS7无法上网 vi /etc/sysconfig/network-scripts/ifcfg-ens33 ONBOOT=no 修改为 ONBOOT=yes reboot原创 2019-10-18 15:59:37 · 131 阅读 · 0 评论 -
VirtualBox上CentOS联网
检查网络设置,默认是网络地址转换(NAT), 则不用修改。 root用户,vi /etc/sysconfig/network-scripts/ifcfg-enp0s3。 将最后的ONBOOT=no】改为【ONBOOT=yes】,保存退出。 重启网络服务service network restart。 ...原创 2019-09-23 18:06:38 · 172 阅读 · 0 评论 -
centOS7 没有ifconfig命令
查看sbin目录是否有ifconfig: ls /sbin | grep ifconfig 切换到root用户安装:yum -y install net-tools.x86_64原创 2019-09-25 15:17:54 · 159 阅读 · 0 评论