[Linux]batch shell(tar,ftp,sftp)
·
Linux
---------------------------------------- * FTP ---------------------------------------- #!/bin/sh HOST=IP명 USER=계정 PASSWORD=패스워드 #folder=$(date +'%Y%m%d') folder_tar=$(date +'%Y%m%d')".tar" cd /var/backup/web/ #tar cvf $folder_tar $folder #backup=$(date +'%Y%m%d')".*" ftp -i -n
[MariaDB] Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MariaDB server
·
Database
MariaDB Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MariaDB server 개발서버에 MariaDB 설치 후 로컬피시에서 원격으로 접속시 SQL 오류 (1130) #0 구문: Host '192.168.110.108' is not allowed to connect to this MariaDB server 라는 경고창이 나타났다. 보안 때문인지 권한설정에 IP를 막는 기능이 존재한다. 나 같은경우는 root였으므로 GRANT ALL PRIVILEGES ON *.* TO @'%' IDENTIFIED BY ; 새로 계정을 만들어서 사용하여도 된다. CREATE USER @'%' IDENTIFIED BY ; GRANT ALL PRIVILEGES O..
[AIX]user password 변경
·
Linux
aix 접속 > smitty user > Add a User or Change a User's Password(Esc+4) 위와 같이 해야 실수를 줄일수 있다는...
방화벽 tcpdump
·
Network
방화벽 실행 후, 하단 명령어 실행 실행 [root@master ~]# tcpdump -nni eth1 // 로그확인 [root@master ~]# tcpdump -nni eth1 > tcp.log // 파일떨구기 vi로 파일 실행 후, 가장 많이 눈에 띄는 아이피 유저 pc 재부팅.
[Linux] FTP command
·
Linux
ftp> open target_IP ( or hostname) : ftp 서버 커넥션 요청 ftp> user : : 사용자 확인 절차 ( uid or anonymous) passwd : ftp> dir ( or ls) : Directory 정보 ( Dos : dir Unix,Linux= ls ) ftp> cd /target_dir : Change Directory ftp> binary ( or ascii) : binary type or character type ftp> get target_file : Read (=download) ftp> put target_file : Write(=upload) ftp> mput target_file_A target_file_B : Multiple file write..
[Linux] 패스워드변경
·
Linux
[windows]사용자 로그인 화면 나오게 하는 방법
·
Board
사용자 로그인 화면 나오게 하는 방법 시작 - 실행 - control userpasswords2 "사용자 이름과 암호를 입력해야 이 컴퓨터를 사용할 수 있음(E)" 에 체크 하여 주십시오.
mysql 암호 잃어버렸을때..
·
Linux
1>암호 초기화 # killall mysqld (데몬을 모조리 죽입니다) # cd /usr/local/mysql (sql이 깔린 곳으로 갑니다) -의외로 이거 모르시는 분이 많은데 sql 명령을 넣으려면 sql이 깔린 디렉토리로 가야합니다. # ./bin/safe_mysqld --skip-grant & 요기까지가 초기화입니다. 2>새 암호 넣기 # ./bin/mysql (sql 실행) mysql>use mysql mysql>update user set password=password('새암호') where user='root'; (root 암호 변경하는 겁니다. '새암호' 자리에 새암호를 넣으세요 예>update user set password=password('123') where user='root'..