sudo yum install epel-release

1、添加源

  默认情况Centos7中无Nginx的源,最近发现Nginx官网提供了Centos的源地址。因此可以如下执行命令添加源:

sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

 

2、安装Nginx

  通过yum search nginx看看是否已经添加源成功。如果成功则执行下列命令安装Nginx。

sudo yum install -y nginx

 

3、启动Nginx并设置开机自动运行

sudo systemctl start nginx.service
sudo systemctl enable nginx.service

sudo yum install epel-release

sudo yum update -y

yum -y install git gcc make patch zlib-devel gdbm-devel openssl-devel sqlite-devel bzip2-devel readline-devel

 

yum install python36

 

yum install python3-devel

 

yum install mysql-devel

 

pip3 install virtualenv

 

python manage.py inspectdb > myrecipe/models.py

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ‘12345678’;

 

 

/home/python/env/djangoblog

 

 

 

linux下查看所有用户及所有用户组

 

groups 查看当前登录用户的组内成员

groups gliethttp 查看gliethttp用户所在的组,以及组内成员

whoami 查看当前登录用户名

 

 

nginx -s reload

 

 

方法一、使用yum命令安装(推荐)

 

$ sudo su - #切换为root用户

 

# yum install epel-release

# yum install -y supervisor

# systemctl enable supervisord # 开机自启动

# systemctl start supervisord # 启动supervisord服务

 

# systemctl status supervisord # 查看supervisord服务状态

# ps -ef|grep supervisord # 查看是否存在supervisord进程

你可能感兴趣的:(Others)