오늘만살자
apt-get update apt-get install -y apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" apt-get update apt-get install docker-ce docker-ce-cli containerd.io sudo sysctl net.bridge.bridge-nf-call-iptabl..
기본설정에서 exclude 검색 기능 > 검색 > 패턴 추가
vi ~/.chrome-remote-desktop-session exec /etc/X11/Xsession 'startxfce4'
vi mongo-compose.yml version: '3.1' services: mongo: image: mongo restart: always ports: - 27017:27017 environment: MONGO_INITDB_ROOT_USERNAME: user MONGO_INITDB_ROOT_PASSWORD: password docker-compose -f mongo-compose.yml up -d
composer create-project laravel/laravel restful --prefer-dist
상위(부모) 컴포넌트에서 하위(자식) 컴포넌트로 데이터를 넘겨 줄때 사용한다. ./App.js import React, { Component } from 'react'; import MyComponent from './MyComponent'; const App = () => { return } export default App; ./MyComponent.js import React from 'react'; const MyComponent = props => { return 이름은 {props.name} 입니다. } export default MyComponent;
src 폴더 밑에 MyComponent.js 파일 생성 ./MyComponent.js import React from 'react'; const MyComponent = () => { return 첫 컴퍼넌트 } export default MyComponent; ./App.js import React, { Component } from 'react'; import MyComponent from './MyComponent'; const App = () => { return } export default App;
yarn create react-app hello-react cd hello-react yarn start npm init react-app hello-react cd hello-react npm start
docker run -d --name mongodb -p 27017:27017 -v /mnt/data/mongodb:/data/db mongo --auth docker exec -it mongodb mongo admin db.createUser( { user: "admin", pwd: "password", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } ) docker exec -it mongodb mongo -u admin -p password --authenticationDatabase admin 새로운 유저 생성 db.createUser( { user: "testman", pwd: "password", roles: [ { role: "read..