Source code analysis of Binder native layer: sm's receiving and processing of data

We start with the main function of servicemanager main and binder & loop //\frameworks\native\cmds\servicemanager\service_manager.c int main() { struct binder_state *bs; bs = binder_open(128*1024); if (!bs) { ALOGE("failed to open binder driver\n"); return -1; } ...

Posted by x_maras on Sun, 02 Feb 2020 09:46:08 -0800

nginx problem list

nginx problem list Installation and Startup of nginx Configure nginx startup self-start: Open log for nginx nginx configuration syntax nginx configuration: role of server_name nginx log level access_log logs/access.log main; log_format main Resolve restart issues How to view compilation options wh ...

Posted by POG1 on Thu, 30 Jan 2020 17:06:05 -0800

Permission management under Linux

Permission management under Linux Permission management under Linux 1. How to view and read permission information [1]ls ls -l file Enter the specified directory ls -d dir View catalog itself ls -a dir All files contain hidden ls -S dir View and sort by size ls -s dir View file size T ...

Posted by rwcurry on Sat, 11 Jan 2020 23:27:14 -0800

Android several lines of code solve the problem of permission adaptation above 6.0

GitHub APK Copy the libray module to the project, or directly rely on the following in build.gradle: allprojects { repositories { maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.AnJiaoDe:Permission:V1.0.0' } Note: if sync reports an error, it is related to com.android.too ...

Posted by redking on Fri, 27 Dec 2019 10:35:48 -0800

Linux remote access and control

Prefacelinux operation and maintenance management is generally managed by remote mode. When hundreds of server hosts need to be managed from a workstation, the remote maintenance mode will be more advantageous.I. SSH Remote ManagementSSH is a secure channel protocol, which is mainly used to realize the remote management, remote replication and ...

Posted by nou on Sun, 24 Nov 2019 10:53:25 -0800

Jvm-Sandbox Source Analysis--Startup Analysis

Preface 1. Work reason, use jvm-sandbox more, then do source code analysis, to know each other, personal ability is limited, if there are errors, welcome to correct.2. About what jvm-sandbox is, how to install it, and how to move it Official Documents3. Source analysis is based on jvm-sandbox Latest master code, tag-1.2.1.4. The tentative plan ...

Posted by tomz0r on Sun, 01 Sep 2019 09:32:10 -0700

linux implements flexible special privilege management ACL, and ACL privilege judgment order!

Why use ACL? In linux, we can use "ll filename" to view the permissions of files. [root@Centos6 ~]# ll 1.txt ---x-wxr-x. 1 zhangsan zhangsan 9 Jul 19 13:47 1.txt [root@Centos6 ~]# getent group zhangsan zhangsan:x:522: [root@Centos6 ~]# chmod 770 1.txt [root@Centos6 ~]# ll 1.txt -rwxrwx---. 1 zhangsan zhangsan 9 Jul 1 ...

Posted by JAB Creations on Sun, 12 May 2019 00:54:54 -0700

AIX 7.1 Configure NFS Notes

Server AIX 7.1, address: 10.72.254.101 Client Redhat6 address: 10.72.254.198 Firstly, confirm that nfs service is running normally. (Services for nfs under Aix: portmap, nfsd, biod, rpc.lockd, rpc.statd, rpc.mountd) lssrc -s portmap # View portmap services lssrc -g nfs # View NFS services mknfs -N # Start nfs service star ...

Posted by gtibok on Fri, 29 Mar 2019 05:36:30 -0700

Ambari installation client error reporting OSError:[Error 17] File exists

During Ambari's new cluster expansion process, one node installed multiple client s to report errors Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in <module> AfterInstallHook().execute() File "/usr/lib/python2.6/site-packages/resource_managem ...

Posted by stratguitar on Sun, 10 Feb 2019 14:48:17 -0800

A gitlab can not use ssh login to solve the problem

Fault phenomena: [root@web-m data]# git clone ssh://git@gitlab.lixinkuan.com:22022/lxk/core.git Cloning into 'core'... git@gitlab.lixinkuan.com's password: Permission denied, please try again. git@gitlab.lixinkuan.com's password: Permission denied, please try again. git@gitlab.lixinkuan.com's password: Permission denied (publickey,gssapi-ke ...

Posted by Hikari on Sat, 26 Jan 2019 00:33:14 -0800