목록2017/08 (4)
낭만 프로그래머
MariaDB 설치 # yum install mariadb mariadb-server 설정 파일 변경 # vi /etc/my.cnf character-set-server=utf8 collation-server=utf8_general_ci 서비스 등록 및 시작 # systemctl enable mariadb # systemctl start mariadb admin 패스워드 변경 # mysqladmin password client 실행 # mysql -u 사용자 -p패스워드 database 생성 및 사용자 추가(권한 설정) create user 'user명'@'%' identified by '패스워드'; create user 'user명'@'localhost' identified by '패스워드'; flus..
로컬 Repository로 설정할 디렉토리 생성 # cd / # mkdir localrepo 미디어 파일을 디렉토리로 복사 # cp -rv /media/* /localrepo/ Online Repository 설정 파일들 삭제 (또는 다른 곳으로 이동) # rm -rf /etc/yum.repos.d/* Offline Repository 설정 파일 생성 # vi /etc/yum.repos.d/local.repo [local] name=localrepository baseurl=file:///localrepo/ enabled=1 gpgcheck=0 Local Repository 업데이트 # createrepo /localrepo/ # yum clean all
Samba 란삼바(samba)는 Windows 운영체제를 사용하는 PC에서 Linux 또는 UNIX 서버에 접속하여 파일이나 프린터를 공유하여 사용할 수 있도록 해 주는 소프트웨어이다. Samba 설치 # yum install samba 계정 등록shareuser 라는 아이디로 계정 생성 후 Samba 계정 등록 # useradd shareuser # passwd shareuser # smbpasswd -a shareuser 공유 디렉토리 설정workgroup을 자신의 워크그룹으로 변경하고 맨 아래에 설정 정보 추가 후 저장 [share] comment = Share Directory path = /home/shareuser public = no writable = yes write list = shar..