新的linux需要安装的环境

发布于 2022-02-07  2264 次阅读


cd /etc/sysconfig/network-scripts/
ls
vim ifcfg-ens33
systemctl restart network

1.yum install -y gcc gcc-c++    gcc安装

2.python3.8安装

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
2.wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
3.tar -zxvf Python-3.8.3.tgz
4.mkdir /usr/local/python3
5.cd Python-3.8.3 ./configure --prefix=/usr/local/python3 make && make install
6.ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3 ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3

3.docker安装

yum install docker -y
systemctl start docker
systemctl enable docker.service
pip install docker-compose

4.pip安装

yum install git -y

5.git

yum install git-instaweb
git instaweb --start

yum -y install vim
yum list installed vim*
yum search ifconfig 安装ifconfig
yum -y install net-tools.x86_64
yum search wget 安装wget
yum install wget -y
yum install unzip -y 安装unzip
yum -y install epel-release
yum -y install python-pip
pip install --upgrade pip

 

 

 

bash脚本
yum install net-tools.x86_64 -y
yum -y install epel-release
yum -y install vim
yum install unzip -y
yum search wget -y
yum install -y git
yum install docker -y
yum -y install python-pip
yum install -y docker-compose

systemctl restart docker
docker pull eugeneware/docker-wordpress-nginx
git clone https://github.com/eugeneware/docker-wordpress-nginx.git
cd docker-wordpress-nginx
sudo docker build -t="eugeneware/docker-wordpress-nginx" .
sudo docker run -p 80:80 --name docker-wordpress-nginx -d eugeneware/docker-wordpress-nginx
sudo docker start docker-wordpress-nginx

ssh登录

1.systemctl enable sshd
2.systemctl start sshd
3.vim /etc/ssh/sshd_config     esc :set nu显示行号
4.38行去掉#后面没有yes就添加yes即可,PermitRootLogin yes
5.systemctl restart sshd
6.update-rc.d ssh enable开机自启

子夜不哭
最后更新于 2022-02-07