Android mobile Transformation Server – basic environment configuration (centos7 arm32)
Note: This article is configured for centos7 of arm32. Do not try other systems or different architectures.
1. First, let's switch to root
su root
2. Enter the directory where the configuration file is located
cd /etc/yum.repos.d/
3. Just in case, it's not necessary to back up first
mv CentOS-Base.repo CentOS-Base.repo.bak
4. Edit the centos-base.repo file using the VI command
vi CentOS-Base.repo
Replace with the following
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you,as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
#released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/updates/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirrors.ustc.edu.cn/centos-altarch/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
5. Set the cache and update the mirror configuration
yum makecache
yum -y update
1. Install using Yum or up2date
yum -y install wget
2. RPM installation
Download the RPM package of WGet: click download
Recommended package image address: http://mirrors.nju.edu.cn/centos-altarch/7/os/armhfp/Packages/
You can put the RPM package in the mounted directory and move the working directory with MV in the system
mv /mnt/linux-share/wget-1.14-18.el7_6.1.armv7hl.rpm /home/sw-code/ # 注意自己的
Install RPM package
rpm ivh wget-1.14-18.el7_6.1.armv7hl.rpm
1. Installation
yum -y install lsof
2. Use lsof to view port occupancy
lsof -i tcp:80
1. Top displays information about the process currently being executed by the system, including process ID, memory usage, CPU usage, etc
top
2. View partitions and disks
lsblk
3. View space usage
df -h
4. View memory size
free -h