Alpine Linux

in OS with 0 comment

1.系统配置

setup-alpine

2.安装ssh服务

apk update
apk add openssh
rc-service sshd start
rc-update add sshd

3.安装常用工具

apk add vim bash bash-completion

4.设置常用别名

vim /etc/profile
export LS_OPTIONS=‘--color=auto‘
alias ls=‘ls $LS_OPTIONS‘
alias ll=‘ls $LS_OPTIONS -l‘
alias l=‘ls $LS_OPTIONS -lA‘

5.安装开发组件

apk add alpine-sdk

6.安装gcc,libc,make,g++

apk add linux-headers
apk add build-base

7.安装 apache php

apk add apache2 php7-apache2
rc-service apache2 start

REF:
https://www.cnblogs.com/zhangmingcheng/p/7122386.html
https://www.yuanmas.com/info/l3zd97pea9.html
https://blog.csdn.net/supergao222/article/details/76222864