2월, 2017의 게시물 표시

Reset my device - Moto X Pure Edition => source by mobilesupport.lenovo.com

Reset my device - Moto X Pure Edition Factory Data Reset If you wish to remove all personal information from the device, or are experiencing software issues, perform a Factory Data Reset. This deletes any data stored on the phone. 1. Touch Image. 2. Touch Settings. 3. Touch Backup & reset. 4. De-select the Automatic restore option. (May need to turn on Back up my Data to turn off Automatic restore) 5. Touch Factory Data Reset. 6. Touch Reset Phone. External Reset If you are unable to access the phone’s menu to perform the standard reset you can attempt an external factory reset. <b> Android 5.x (Lollipop)/Android 6.x (Marshmallow) Steps</b> 1. With the phone powered off, press and hold the Volume Down button and the Power button at the same time until the device turns on. 2. Press the Volume Down key to highlight Recovery mode. 3. Press the Power key to restart into Recovery mode. 4. The screen will display an Android robot with a red exclamation mark...

MongoDB 에서 사용자 인증 (authorization) 적용 방법

MongoDB 에서 사용자 인증 (authorization) 적용 방법 MongoDB 에서 Authorization 기능을 사용하는 방법입니다 1. 사용자 관리 계정 만들기 우선 MongoDB 가 처음 설치된 상태에서 mongo 를 이용해 접속. $ mongo 그리고 아래의 명령어로 사용자 관리 계정을 생성 use admin db.createUser( { user: "id", pwd: "passwod", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } ) 2. 네트워크 접속 허용 및 포트변경 보안 ( Security ) 의 Authorization 기능 사용설정 이제 mongodb 의 설정을 할 것 입니다. exit 로 mongodb 를 나온 후 /etc/mongod.conf 를 수정하도록 합니다. $ sudo vim /etc/mongod.conf 여기서 수정 해야할 부분은 net 부분과 authorization 부분입니다. net 은 port 와 bindIp 를 관리 하는대 여기서 port 는 원하시는 port 로 bindIp 는 네트워크 접속을 하시는 설정에 따라서 변경하시면 됩니다. 기본 포트를 사용하셔도 상관 없긴하지만 변경하는 것이 좋다. # network interfaces net: port: 27017 #bindIp: 127.0.0.1 제 경우 위와 같이 port 는 27017(다른걸로 변경) 그리고 bindIP 는 주석 처리. 실제 서버에서 내부 네트워크 만으로 접속을 하게 된다면 bindIp 를 걸어서 운영하는 것이 좋다. 제 경우 테스트를 위한 서버 설정이기 때문에 풀어 주었습니다. bindIP 의 경우 여러개의 IP 를 , (쉼표) 와 함께 나열할 수 있습니다 ex) bindIp:127.0.0.1, 10.0.0.2, ...