# 创建新用户
adduser work
passwd work
# 分配管理员权限
visudo
1
2
3
4
5
6
2
3
4
5
6
# 建立软链
# 前一个是文件所在目录 后面是系统命令需要调用的目录
ln -s /root/packages/nodejs/bin/npm /usr/local/bin/
1
2
2
# wget
yum install wget
1
# curl升级
yum install wget gcc openssl-devel -y
wget https://curl.haxx.se/download/curl-7.67.0.tar.gz
tar -zxvf curl-7.67.0.tar.gz
cd curl-7.67.0
# 修改为:用户根路径/curl
./configure --with-ssl --prefix=/usr/local/curl
make
make install
# 修改为:用户根路径/curl
echo "export PATH=/usr/local/curl/bin:$PATH" >> /etc/profile
source /etc/profile
curl --version
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
# nginx
# 改源
sudo yum install -y epel-release
sudo yum -y update
sudo yum install -y nginx
1
2
3
4
5
2
3
4
5