본문 바로가기

OS/Linux

(19)
vi/vim 에서 특정 패턴 있는 라인 전부 삭제 :g/특정패턴/d
bash 스크립트 날지 시간 출력 #!/bin/sh timestamp=`date +%Y%m%d%H%M` echo "$timestamp"
windows 원격 linux wireshark 캡쳐 pcap plink 로 실행시 에러 발생. unrecognized libpcap format or not libpcap data Data written to the pipe is neither in a supported pcap format nor in pcapng format. please report this to the developers of the program writing to the pipe. plink 최신 버전으로 사용하니 안되여서 기존 버전으로 하니 정상동작 확인. plink -ssh 아이디@서버아이피 -P 포트 -pw 비번 "tcpdump -i any -w - " | "C:\Program Files\Wireshark\wireshark.exe" -k -i - 아래 최신버전에서는 -ssh 옵션이..
ubuntu hostname 변경. vi /etc/hostnamehostname vi /etc/hostshostname reboot
Ubuntu nameserver 변경. vi /etc/network/interfaces # The primary network interfaceauto eth0iface eth0 inet static address 172.16.118.50 netmask 255.255.0.0 network 172.16.0.0 broadcast 172.16.255.255 gateway 172.16.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 8.8.8.8 dns-search open-ims.test sudo ifdown eth0 && sudo ifup eth0
You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest The program package-cleanup is found in the yum-utils package. 해결방법: yum clean all rpm --rebuilddb yum update
Mysql Backup and Restore backup: # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql restore:# mysql -u root -p[root_password] [database_name] < dumpfilename.sql
CentOS apache php mysql 환경설졍 1. [root@localhost ~]# yum -y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-devel 2. [root@localhost ~]# service httpd startStarting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName [ OK ] 3. [root@localhost ~]# service mysqld start[root@localhost ~]# mysqladm..