采用联想笔记本搭建自己的Centos8服务器(摸索中)

0.制作启动盘工具:rufus

1.笔记本进BIOS方式:fn+f2

安装环境不再赘述,个人不喜安装带桌面的环境

2.安装好后配置本地源下载相关包,连接wifi

yum -y install NetworkManager-wifi nmcli d wifi nmcli d wifi connect "wifi名" password "密码"

3.设置合盖不休眠
编辑文件/etc/systemd/logind.conf

HandleLidSwitch=ignore

获取本地地址那里需要改成

DIR=$(dirname -- "$(readlink -f "$0")")

5.npm安装指定版本pnpm

npm install -g pnpm@5

6.开关端口

firewall-cmd --zone=public --add-port=5000/tcp --permanent firewall-cmd --reload firewall-cmd --zone=public --remove-port=5000/tcp --permanent

7.ip范围

所有ipv4

0.0.0.0

所有ipv6

8.使用ArDNSPod做ddns穿透

github上也有,忘记用的哪个了,后面再百度吧

crontab -l */10 * * * * sudo sh /home/software/ArDNSPod/ddnspod.sh 2>&1 > /dev/null

9.通过mem模式配置wol远程开机

[root@Centos8 ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp1s0 ... ETHTOOL_OPTS="wol g" 
[root@Centos8 ~]# cat .bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias standby='echo mem > /sys/power/state'

原文链接:https://blog.csdn.net/qq_36045849/article/details/126735828?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168449620216800180642922%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=168449620216800180642922&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-8-126735828-null-null.article_score_rank_blog&utm_term=NAS%E3%80%81%E7%BE%A4%E6%99%96%E3%80%81%E9%98%BF%E9%87%8C%E4%BA%91%E3%80%81%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90%E3%80%81%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F%E3%80%81ipv6%E3%80%81ddns%E3%80%81%E8%BD%BB%E9%87%8F%E7%BA%A7%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E3%80%81%E9%93%81%E5%A8%81%E9%A9%AC%E3%80%81%E5%A8%81%E8%81%94%E9%80%9A%E3%80%81DSM%E3%80%81DSM6.0%E3%80%81%E7%BE%A4%E6%99%96nas%E3%80%81%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E3%80%81%E8%9C%97%E7%89%9B%E6%98%9F%E9%99%85%E3%80%81%E9%BB%91%E7%BE%A4%E6%99%96%E3%80%81docker%E3%80%81%E5%AE%B9%E5%99%A8%E9%95%9C%E5%83%8F%E3%80%81%E5%9F%9F%E5%90%8D%E6%B3%A8%E5%86%8C%E3%80%81%E5%AE%9D%E5%A1%94%E3%80%81%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E3%80%81nginx%E3%80%81frp%E3%80%81%E5%8A%A8%E6%80%81%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享