ionic+cordova常用命令
- ionic+cordova常用命令
** 添加平台
ionic cordova run android -l
** 编译
ionic cordova build android -l
** 编译
ionic cordova build android -l
grep 'temporary password' /var/log/mysqld.log
1 | systemctl start mysqld |
1 | rpm -qa|grep mysql // 查询已安装的包 |
https://www.jb51.net/article/199565.htm
mkdir -p /data/sonarqube/postgres/postgresql
mkdir -p /data/sonarqube/postgres/data
docker run –name postgres -v dv_pgdata:/data/sonarqube/postgres/data –net sonarqube-tier -e POSTGRES_USER=sonarqube -e POSTGRES_PASSWORD=sonarqube -e POSTGRES_DB=sonarqube -e TZ=Asia/Shanghai –restart always –privileged=true -p 5432:5432 -d –network-alias postgres postgres:latest
https://www.cnblogs.com/shenh/p/13428029.html
docker run -d –name sonarqube -p 9000:9000
–net sonarqube-tier
–privileged=true
–restart always
-v /data/sonarqube/logs:/opt/sonarqube/logs
-v /data/sonarqube/conf:/opt/sonarqube/conf
-v /data/sonarqube/data:/opt/sonarqube/data
-v /data/sonarqube/extensions:/opt/sonarqube/extensions
sonarqube:latest
yum install redis
yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi install redis
安装snap
确认自己使用的CentOS版本
1 | cat /etc/centos-release |
如果使用的是CentOS8
1 | sudo dnf install epel-release |
如果使用的CentOS7
1 | sudo yum install epel-release |
安装
1 | sudo yum install snapd |
启动并且开启端口
1 | sudo systemctl enable --now snapd.socket |
开启 classic snap 支持, 创建链接 /var/lib/snapd/snap 到 /snap
1 | sudo ln -s /var/lib/snapd/snap /snap |
安装CertBot
安装Cerbot
1 | sudo snap install --classic certbot |
为CertBot创建一个软链接
1 | sudo ln -s /snap/bin/certbot /usr/bin/certbot |
如果想要覆盖nginx配置
1 | sudo certbot --nginx |
如果不想覆盖nginx配置
1 | sudo certbot certonly --nginx |
测试自动更新证书功能
1 | sudo certbot renew --dry-run |
sudo yum install yum-utils
1 | [nginx-stable] |
sudo yum-config-manager --enable nginx-mainline
sudo yum install nginx
启动systemctl start nginx.service
停止systemctl stop nginx.service
开机自起systemctl enable nginx.service
取消开机自起systemctl disable nginx.service