1 系统安装操作步骤
OS Version:1804
镜像下载:http://cdimage.ubuntu.com/releases/
1.1 选择安装语言:
1.2 安装界面选择第一项进行系统安装
1.3 选择安装过程中使用的语言,也是系统安装完后使用的默认语言
1.4 选择地区,这里先选择最后一项other,然后回车再选择Asia,最后选择China
1.5 选择语言环境
1.6 键盘布局检查,选择NO
1.7 选择美式键盘
1.8 确认使用美式键盘
1.9 配置主机名
1.10 创建一个普通用户和为其设置密码
1.11 确认时区
1.12 选择磁盘分区的方法,这里选手动分区
1.13 选择磁盘
1.14 确认对磁盘分区
1.15 对磁盘分区
1.16 创建新分区
1.17 指定分区大小,这里将磁盘的全部大小划分给该分区
1.18 选择分区类型,这里选主分区
1.19 分区完成
1.20 完成分区并写入数据
1.21 确认写入磁盘
1.22 是否使用代理,这里不填
1.23 是否自动更新,这里选择默认,不自动更新
1.24 选择安装组件,选择对应需要安装的组件,然后按空格键,这里选择OpenSSH Server
1.25 将GRUB引导加载程序安装到主引导记录
1.26 完成安装,确认重启服务器
1.27 登录系统
2 系统基础配置
官方文档:https://help.ubuntu.com/
2.1 更改主机名
# cat /etc/hostname hechunping
2.2 更改网卡名称为eth*
# sed -i '/GRUB_CMDLINE_LINUX=/s/"$/net.ifnames=0 biosdevname=0"/' /etc/default/grub # update-grub Sourcing file `/etc/default/grub' Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.15.0-55-generic Found initrd image: /boot/initrd.img-4.15.0-55-generic done # reboot # sed -i 's/ens33/eth0/' /etc/netplan/01-netcfg.yaml
2.3 配置root远程登录
# 默认情况下,ubuntu不允许root"htmlcode">官方文档:https://netplan.io/ Ubuntu 从 17.10 开始,已放弃在 /etc/network/interfaces "htmlcode">root@hechunping:~# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no addresses: [192.168.7.132/24] gateway4: 192.168.7.2 nameservers: addresses: [223.6.6.6] root@hechunping:~# netplan apply2.4.2 配置多网卡静态IP
# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no addresses: [172.20.7.34/16] gateway4: 172.20.0.1 nameservers: addresses: [223.6.6.6] eth1: dhcp4: no addresses: [192.168.7.34/24] routes: - to: 172.20.0.0/16 via: 192.168.7.2 # netplan apply2.4.3 单网卡桥接
# cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no bridges: br0: dhcp4: no addresses: [172.20.7.34/16] gateway4: 172.20.0.1 nameservers: addresses: [223.6.6.6] interfaces: - eth0 # netplan apply2.4.4 多网卡桥接
将br0和br1分别桥接到eth0和eth1。 # cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no eth1: dhcp4: no bridges: br0: dhcp4: no addresses: [172.20.7.34/16] gateway4: 172.20.0.1 nameservers: addresses: [223.6.6.6] interfaces: - eth0 br1: dhcp4: no addresses: [192.168.7.34/24] routes: - to: 172.20.0.0/16 via: 192.168.7.2 interfaces: - eth1 root@hechunping:~# netplan apply2.4.5 双网卡绑定
需要提前安装好bridge命令,两块网卡使用同一种网络模式 # cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no eth1: dhcp4: no bonds: bond0: interfaces: - eth0 - eth1 addresses: [172.20.7.34/16] gateway4: 172.20.0.1 nameservers: addresses: [223.6.6.6,223.5.5.5] parameters: mode: active-backup mii-monitor-interval: 100 # poweroff # netplan apply2.4.6 双网卡绑定+桥接
"htmlcode">多"htmlcode"># cat /etc/netplan/01-netcfg.yaml # This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: dhcp4: no eth1: dhcp4: no eth2: dhcp4: no eth3: dhcp4: no bonds: bond0: interfaces: - eth0 - eth1 parameters: mode: active-backup mii-monitor-interval: 100 bond1: interfaces: - eth2 - eth3 parameters: mode: active-backup mii-monitor-interval: 100 bridges: br0: dhcp4: no addresses: [172.20.7.34/16] gateway4: 172.20.0.1 nameservers: addresses: [223.6.6.6,223.5.5.5] interfaces: - bond0 br1: dhcp4: no addresses: [192.168.7.34/24] routes: - to: 172.20.0.0/16 via: 192.168.7.2 interfaces: - bond1 # netplan apply3 软件包管理
3.1 修改软件仓库地址
阿"htmlcode">apt list #apt列出仓库软件包,等于yum list apt search NAME #搜索安装包 apt show apache2 #查看某个安装包的详细信息 apt install apache2 #在线安装软件包 apt remove apache2 #卸载单个软件包但是保留配置"htmlcode">rpm:RPM(Red Hat Package Manager),是基于Red hat的Linux Distribution的包管理系统,同时也指rpm包本"dpkg "是"Debian Packager "的简写,为 "Debian"专"htmlcode"># pwd /usr/local/src 解压"1.8.0_212" Java(TM) SE Runtime Environment (build 1.8.0_212-b10) Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)3.5 安装OpenJDK
# apt install openjdk-8-jdk3.6 安装常"htmlcode">
# apt purge ufw lxd lxd-client lxcfs lxc-common # apt install iproute2 ntpdate tcpdump telnet traceroute nfs-kernel-server nfs-common lrzsz tree openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev ntpdate tcpdump telnet traceroute gcc openssh-server lrzsz tree openssl libssl-dev libpcre3 libpcre3-dev zlib1g-dev ntpdate tcpdump telnet traceroute iotop unzip zip3.7 系统资源限制优化
#cat /etc/security/limits.conf #root账"htmlcode"># Controls source route verification net.ipv4.conf.default.rp_filter = 1 net.ipv4.ip_nonlocal_bind = 1 net.ipv4.ip_forward = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename. # Useful for debugging multi-threaded applications. kernel.core_uses_pid = 1 # Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 # Disable netfilter on bridges. net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0 # Controls the default maxmimum size of a mesage queue kernel.msgmnb = 65536 # # Controls the maximum size of a message, in bytes kernel.msgmax = 65536 # Controls the maximum shared segment size, in bytes kernel.shmmax = 68719476736 # # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296 # TCP kernel paramater net.ipv4.tcp_mem = 786432 1048576 1572864 net.ipv4.tcp_rmem = 4096 87380 4194304 net.ipv4.tcp_wmem = 4096 16384 4194304 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_sack = 1 # socket buffer net.core.wmem_default = 8388608 net.core.rmem_default = 8388608 net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 net.core.netdev_max_backlog = 262144 net.core.somaxconn = 20480 net.core.optmem_max = 81920 # TCP conn net.ipv4.tcp_max_syn_backlog = 262144 net.ipv4.tcp_syn_retries = 3 net.ipv4.tcp_retries1 = 3 net.ipv4.tcp_retries2 = 15 # tcp conn reuse net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_tw_reuse = 0 net.ipv4.tcp_tw_recycle = 0 net.ipv4.tcp_fin_timeout = 1 net.ipv4.tcp_max_tw_buckets = 20000 net.ipv4.tcp_max_orphans = 3276800 net.ipv4.tcp_synack_retries = 1 net.ipv4.tcp_syncookies = 1 # keepalive conn net.ipv4.tcp_keepalive_time = 300 net.ipv4.tcp_keepalive_intvl = 30 net.ipv4.tcp_keepalive_probes = 3 net.ipv4.ip_local_port_range = 10001 65000 # swap vm.overcommit_memory = 0 vm.swappiness = 10 #net.ipv4.conf.eth1.rp_filter = 0 #net.ipv4.conf.lo.arp_ignore = 1 #net.ipv4.conf.lo.arp_announce = 2 #net.ipv4.conf.all.arp_ignore = 1 #net.ipv4.conf.all.arp_announce = 2以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com白云城资源网 Copyright www.dyhadc.com暂无“Ubuntu18.04 Server版安装及使用(图文)”评论...《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。
更新日志
2024年12月22日2024年12月22日
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]