“Debian服务器初始化”的版本间的差异
跳到导航
跳到搜索
(→常用软件) |
(→参考) |
||
第65行: | 第65行: | ||
[[Debian配置iptables]] | [[Debian配置iptables]] | ||
+ | |||
+ | =security= | ||
+ | ==firewalld== | ||
+ | |||
+ | 详情可见 [[Centos7 firewalld防火墙基础]] | ||
+ | |||
+ | [https://computingforgeeks.com/how-to-install-and-configure-firewalld-on-debian/ How To Install and Configure Firewalld on Debian 10] | ||
+ | |||
+ | [https://ywnz.com/linuxaq/5495.html 在Debian 10(Buster)上安装和配置Firewalld] | ||
=参考= | =参考= |
2020年2月26日 (三) 02:57的版本
目录
os init
change sources
10源
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib deb http://mirrors.aliyun.com/debian-security buster/updates main deb-src http://mirrors.aliyun.com/debian-security buster/updates main deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
9 源
echo 'deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian-security stretch/updates main deb-src http://mirrors.aliyun.com/debian-security stretch/updates main deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib ' >sources.list
ssh config
echo "ssh-rsa AAAAB3NzaC you_prk_key root@ops " >> /root/.ssh/authorized_keys sed -i "s/#PubkeyAuthentication yes/PubkeyAuthentication yes/g" /etc/ssh/sshd_config sed -i "s/^PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config systemctl restart sshd #service sshd restart
常用软件
useradd -d /data/evan -s /bin/bash -m evan 数m表示如果该目录不存在,则创建该目录 apt install net-tools rsync wget firewalld vim build-essential dnsutils screen curl sudo lsb-release iotop software-properties-common -y #dig dnsutils #全面的开发工具 sudo apt install git golang build-essential gcc g++ gdb libboost-dev make automake autogen autoconf cscope global cmake cmake-gui astyle clang-format clang llvm lldb libsqlite3-dev sqlite3 bison flex ruby-dev linux-headers-`uname -r` #ps apt install procps 安装Fail2Ban
security
firewalld
How To Install and Configure Firewalld on Debian 10
在Debian 10(Buster)上安装和配置Firewalld