SysAdmin/기타

CentOS 7 설치

jjryu 2019. 11. 28. 17:33

CentOS-7-x86_64-Minimal-xxxx.iso  파일을 다운받아 "Win32 Disk Imager" 툴로 USB를 만든다
c.f. "Universal USB installer"로 만들면 안 됨

네트워크를 설정
/etc/sysconfig/network-scripts/ifcfg-xxxx
c.f. $ service network start

시스템 종료
# shutdown -h now

시스템 재부팅
# shutdown -r now

절전모드
# systemctl suspend

최대 절전모드
# systemctl hibernate

 

$ cat /etc/redhat-release

 

디스크 정보
$ df (-h)

wget 설치
# yum install wget

 

# yum install unzip

# yum install cvs

# yum install telnet

 

$ yum list installed | grep tomcat

# yum install -y tomcat* # /usr/share/tomcat

 # /etc/tomcat/tomcat.conf
 # /etc/tomcat/conf.d/*.conf

# systemctl {start|stop} firewalld 
# firewall-cmd --permanent --add-port=8080/tcp  # /etc/firewalld/zones/public.xml
# firewall-cmd --reload
# firewall-cmd --list-ports

(# systemctl enable tomcat)

# systemctl start tomcat # http://{아이피}:8080/
# systemctl restart tomcat
# systemctl stop tomcat
$ systemctl status tomcat

# ausearch -m avc
# yum install policycoreutils-python
# audit2allow -a -w
# audit2why < /var/log/audit/audit.log
# grep "tcp_socket" /var/log/audit/audit.log | audit2why
# setsebool -P tomcat_can_network_connect_db 1
# audit2allow -a

 

~/.bashrc

...
export LS_COLORS="di=00;36:fi=00;37"

 

~/.vimrc

highlight Comment term=bold cterm=bold ctermfg=4

 

# yum -y groupinstall "Server with GUI"
$ startx

 

 

참조 사이트:

https://wiki.centos.org/HowTos/InstallFromUSBkey