knowledge-list

ulimit修改用户可打开的最大文件数量

临时修改:ulimit -n 65535

#永久修改
vim  /etc/security/limits.conf
* soft nofile 655360
* hard nofile 655360
 Vim /etc/pam.d/sshd
Session required pam_limits.so

解决普通用户可打开文件数量的限制

1.查看当前默认ulimit值

[root@localhost ~]# ulimit -n

2.执行下面命令

[root@localhost ~]# echo ulimit -n 65535 >> /etc/profile
[root@localhost ~]# source /etc/profile

3.修改配置文件

[root@localhost ~]# vi /etc/security/limits.conf
在文件最后添加下面的参数

  • soft nproc unlimited
  • hard nproc unlimited
  • soft nofile 65535
  • hard nofile 65535
4. 普通用户需要重新连接ssh服务ulimit参数才会更新

创建用户+用户密码
[root@localhost ~]# useradd -d /home/aaa -m aaa
创建密码:passwd aaa
passwd 输入密码

Centos7关闭firewalld设置iptables

 systemctl  stop  firewalld.service           #(停止firewalld)
 systemctl  disable   firewalld.service      #(禁止开机自启)

在这里插入图片描述

查看是否打开超线程方法

[root@localhost ~]# cat /proc/cpuinfo |grep “cores”|uniq
cpu cores : 8
[root@localhost ~]# cat /proc/cpuinfo |grep “sibling”|uniq
siblings : 16
两倍的cores=siblings时 超线程则开启

惠普服务器U盘装机

(blog.csdn.net/zuozewei/article/details/84951690)

  1. 开机按F10配置raid磁盘阵列
  2. 重启,按F11设置为U盘启动进入到下面界面:
    在这里插入图片描述
    如果进入了dracut命令行:则表示未找到安装的镜像文件,使用ls /dev/sd* 命令查看U盘属于哪个硬盘,一般U盘是排列在最后一个的sd;再次重启(reboot)
    再次进入到上面的界面,使用键盘按“e”或者“TAB”这时屏幕显示了两串代码
    更改vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20\86_64 rd.live.check quiet 这一行为 vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sdb4:/ quiet
    这个sdb4是用ls /dev/sd*该命令查看的
    进入到安装页面:
    a. 选择语言
    b. 创建分区(默认分区就好)
    c. 设置root密码
    d. 修改网络参数(ip、网关、DNS等)保存退出
    e. 重启网络(systemctl restart network.service)

更新Linux系统版本方法:用新的ISO镜像文件将磁盘覆盖,执行以下命令

方法一:利用dd命令写入磁盘
dd if=Centos.iso of =/dev/sdb bs=1m
sync
sync
sync
方法二:利用yum安装,需要连接外网,配置网络yum源
yum update -y
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值