Narzędzia użytkownika

Narzędzia witryny


default_centos

Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

Nowa wersja
Poprzednia wersja
default_centos [2013/02/25 12:01] – utworzono kamildefault_centos [2018/07/16 11:47] (aktualna) – edycja zewnętrzna 127.0.0.1
Linia 1: Linia 1:
-Instalacja:+===== Centos - domyślna konfiguracja nowego serwera ===== 
 + 
 +==== Konfiguracja sieci ==== 
 + 
 +<file> 
 +vi /etc/sysconfig/network 
 +vi /etc/hosts 
 +vi /etc/sysconfig/network-scripts/ifcfg-eth0 
 +hostname nazwa-serwera 
 +</file> 
 + 
 +==== Instalacja podstawowych paczek ==== 
 <file> <file>
-yum install mc subversion telnet zip unzip tcpdump man nano mailx chkconfig wget+yum install mc subversion telnet zip unzip tcpdump man nano mailx chkconfig wget ntpdate git rsync
 mkdir install mkdir install
 cd install/ cd install/
-wget http://pkgs.repoforge.org/p7zip/p7zip-9.20.1-1.el6.rf.x86_64.rpm +wget http://pkgs.repoforge.org/p7zip/p7zip-9.20.1-1.el6.rf.`uname -m`.rpm 
-wget http://pkgs.repoforge.org/p7zip/p7zip-plugins-9.20.1-1.el6.rf.x86_64.rpm+wget http://pkgs.repoforge.org/p7zip/p7zip-plugins-9.20.1-1.el6.rf.`uname -m`.rpm
 rpm -i ./p7zip-* rpm -i ./p7zip-*
 cd .. cd ..
 </file> </file>
  
-Konfiguracja:+==== Konfiguracja czasu ==== 
 <file> <file>
-echo "2 * * * * root ntpdate pool.ntp.org > /dev/null" >> /etc/crontab+echo "2 * * * * root ntpdate -u pool.ntp.org > /dev/null" >> /etc/crontab
 /etc/init.d/crond reload /etc/init.d/crond reload
 +</file>
 +
 +==== Wyłączenie SELinux ====
 +
 +<file>
 +cat /etc/selinux/config | sed "s/SELINUX=.*/SELINUX=disabled/g" > /etc/selinux/config.new && mv /etc/selinux/config.new /etc/selinux/config && reboot
 +</file>
 +
 +==== Repo Nginx ====
 +
 +<file>
 +echo '[nginx]
 +name=nginx repo' >> /etc/yum.repos.d/nginx.repo
 +echo "baseurl=http://nginx.org/packages/centos/6/`uname -m`/" >> /etc/yum.repos.d/nginx.repo
 +echo 'gpgcheck=0
 +enabled=1' >> /etc/yum.repos.d/nginx.repo
 +</file>
 +
 +==== Firewall off ====
 +
 +<file>
 +/etc/init.d/iptables stop
 +chkconfig iptables off
 </file> </file>
default_centos.1361790101.txt.gz · ostatnio zmienione: 2018/07/16 11:47 (edycja zewnętrzna)