Menu Home

Author Archives

lnmcc

Gerrit迁移

Gerrit迁移后,首次访问会出现“拒绝访问”错误,解决方案如下: 清除index目录下的索引文件 重建索引 java -jar /home/gerrit2/gerrit_site/bin/gerrit.war reindex

Android Gradle: SDK License Agreements

* What went wrong: A problem occurred configuring project ‘:mi’. > Failed to notify project evaluation listener. > You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 25]. Before building your project, you need to accept the license agreements and complete the installation of […]

Docker常用命令

列出所有镜像 docker images docker images –format “{{.ID}}: {{.Repository}}” docker images –format “table {{.ID}}\t{{.Repository}}\t{{.Tag}}” 删除 Dangling 镜像 docker rmi $(docker images -q -f dangling=true) 进入容器 docker exec -it name bash Docker Commit docker commit \ –author “name” \ –message “message” \ webserver \ nginx:v2 sha256:000000000….. 以root用户进入Container docker exec -u root -it […]

Use Gerrit

Gerrit Workflow Set Permission(Nginx) Create password file htpasswd -c /path/gerrit.password username Add New User htpasswd -m /path/gerrit.password username Nginx Configuration server { listen *:80; server_name gerrit; allow all; deny all; auth_basic “Welcomme to Gerrit !”; auth_basic_user_file /path/gerrit.password; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; } } […]