Linux · 4月 29, 2022 0

alpine 基本配置安装ssh和zerotier内网穿透

内容纲要
# 配置ssh
# https://wiki.alpinelinux.org/wiki/Setting_up_a_SSH_server
apk add openssh
rc-update add sshd
rc-status
/etc/init.d/sshd start
# 安装常用
apk add curl htop

# 安装zerotier穿透内网
apk add zerotier-one
/etc/init.d/zerotier-one start
rc-update add zerotier-one
rc-status
zerotier-cli join d5e5fb67631542

# 安装nginx
#https://www.cyberciti.biz/faq/how-to-install-nginx-web-server-on-alpine-linux/
#https://www.onitroad.com/jc/linux/how-to-install-nginx-web-server-on-alpine-linux.html
 apk add nginx
 /etc/init.d/nginx  restart
 #rc-service nginx start
 rc-update add nginx
 rc-status

#查看ip信息
ip addr show
%d 博主赞过: