yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
cd /usr/local
mkdir nginx
cd nginx
http://nginx.org/en/download.html
wget http://nginx.org/download/nginx-1.24.0.tar.gz
tar -xvf nginx-1.24.0.tar.gz
cd nginx-1.24.0
./configure
//执行make命令
make
//执行make install命令
make install
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf //使用nginx -c的参数指定nginx.conf文件的位置
/usr/local/nginx/sbin/nginx -s reload
命令: cd /usr/local/nginx/sbin
启动,关闭,重启,命令:
./nginx 启动
./nginx -s stop 关闭
./nginx -s reload 重启
****************************************
sudo yum update
echo "export LC_ALL=en_US.UTF-8" >> /etc/profile
source /etc/profile
原因是因为没有配置正确的语言环境造成的
locale -a 命令,查看目前系统已安装的语言包
yum install glibc-langpack-zh
sudo yum install -y yum-utils #安装 yum-utils,它提供了 yum-config-manager,可用来管理yum源
yum list installed | grep docker
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce
启动docker
sudo systemctl start docker
设置docker自启动
sudo systemctl enable docker
******************************************
docker pull redis #拉取最后版本的docker-redis镜像
docker run --name redis -p 6379:6379 -d redis redis-server
******************************************
docker build -t web2023 .
docker run --name=web2023 -p 8036:80 -d web2023
Docker ps -a 命令查看所有容器信息
sudo lsof -i :端口号,其中端口号为需要查询的端口号。
*******************************************
docker pull --platform linux/x86_64 mysql:5.7
docker run --name mysql -p 13307:3306 -e MYSQL_ROOT_PASSWORD=123456 -d --platform linux/x86_64 mysql:5.7
*******************************************
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install dotnet-sdk-6.0
或
sudo yum install aspnetcore-runtime-6.0
检查SDK
dotnet --list-sdks
检查运行时
dotnet --list-runtimes
dotnet **.Api.dll --urls http://*:8101
chmod 777 ./*.sh
./dotnet-install.sh --channel 6.0
sudo /root/.dotnet/dotnet --list-sdks
标签:sudo,--,ngnix,nginx,yum,arm64,install,linux,docker From: https://www.cnblogs.com/94cool/p/17693439.html