본문 바로가기

OS

(32)
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..
Centos7 현재 디렉토리 전체 size. du -ch | grep total http://www.codecoffee.com/tipsforlinux/articles/22.html
samba mount smbclient -L //192.168.101.100 -U usernamemount -t cifs //192.168.101.100/sales /mnt/cifs -o username=shareuser,password=sharepassword,domain=nixcraft
CentOS7 ntp 설치. yum install ntpservice ntpd start