Under OpenVZ, install Alpine system with one click

888u

Last update at :2024-07-10,Edit by888u

Under SSH, root user:

wget https://d.3s.work/s/alpine.sh && bash alpine.sh If there is an error message during the installation process, just ignore it. Most of them are just prompts about whether the file does not exist when deleting the file. After the installation is completed, the terminal will automatically exit. We can log in using the original default password.

If the server keeps modifying /etc/inittab and adding a bunch of regenerated gettys, run the command:

apk add e2fsprogs-extra chattr +i /etc/inittab Memory usage after installation:

Optimization operations after installation:

1. If you find that the update or installation program is very slow, you can consider updating the apk source:

echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.8/main/" > /etc/apk/repositories //Tsinghua University source echo "https://mirrors.ustc.edu.cn/alpine/v3.8/main/" > /etc/apk/repositories //University of Science and Technology of China source 2.Alpine common commands:

apk update //Update the latest mirror source list apk search //Find all available software packages apk search -v //Find all available software packages and their descriptions apk search -v 'acf*' //Find software package by package name apk search -v -d 'docker' //Find a specific software package through the description file apk add openssh //Install a software apk add openssh openntp vim //Install multiple software apk add --no-cache mysql-client //Does not use the local mirror source cache, which is equivalent to executing update first and then add apk info //List all installed packages apk info -a zlib //Display complete package information apk info --who-owns /sbin/lbu //Display the package to which the specified file belongs apk upgrade //Upgrade all software apk upgrade openssh //Upgrade specified software apk upgrade openssh openntp vim //Upgrade multiple software apk add --upgrade busybox //Specify to upgrade some software packages apk del openssh //Delete a software 3.Alpine service management:

Alpine does not use fedora's systemctl for service management, but uses the RC series of commands: rc-update //Mainly used to add or delete services at different run levels rc-status // Mainly used for run-level status management rc-service //Mainly used to manage the status of services rc-status -a //List all services in the system

Script source: Converts your OpenVZ VPS to Alpine Linux Modification: https://cikeblog.com/linux-to-apline.html

Recommended site search: Mainland China bgp cloud host, free domain name space, Hong Kong server, free proxy server, foreign vps server rental, domain name registration center, cloud host permanently free, mainland China dynamic ip proxy, Japanese server free, cpanel space ,

Under OpenVZ, install Alpine system with one click

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码