Basic system instalation
From PlcWiki
(Difference between revisions)
(→Install some good tools) |
|||
Line 14: | Line 14: | ||
or run | or run | ||
# yum -y install wget openssh-clients mc setuptool system-config-network-tui ntsysv vim-enhanced unzip | # yum -y install wget openssh-clients mc setuptool system-config-network-tui ntsysv vim-enhanced unzip | ||
+ | |||
+ | == to install it in a Virtual Box | ||
+ | # yum -y install "kernel-devel-uname-r == $(uname -r)" | ||
+ | # yum -y install gcc perl kernel-headers kernel-devel bzip2 dkms make | ||
+ | # reboot | ||
+ | |||
+ | Insert the guest VM CD now | ||
+ | |||
+ | # sudo mkdir -p /mnt/cdrom | ||
+ | # sudo mount /dev/cdrom /mnt/cdrom/ | ||
+ | # sudo sh /mnt/cdrom/VBoxLinuxAdditions.run --nox11 | ||
+ | # reboot | ||
== Disable firewall == | == Disable firewall == | ||
Line 51: | Line 63: | ||
# yum install tomcat6-docs-webapp | # yum install tomcat6-docs-webapp | ||
# yum install tomcat6-admin-webapps | # yum install tomcat6-admin-webapps | ||
+ | |||
+ | or run | ||
+ | # yum -y install mysql-connector-java java-1.6.0-openjdk-devel tomcat6 tomcat6-docs-webapp tomcat6-admin-webapps jakarta-common-digester | ||
We need MySQL connector | We need MySQL connector |
Revision as of 09:31, 12 September 2022
Contents |
Install CentOS minimal
Install some good tools
# yum install openssh-clients # yum install mc # yum install setuptool # yum install system-config-network-tui # yum install ntsysv # yum install vim-enhanced # yum install unzip
or run
# yum -y install wget openssh-clients mc setuptool system-config-network-tui ntsysv vim-enhanced unzip
== to install it in a Virtual Box
# yum -y install "kernel-devel-uname-r == $(uname -r)" # yum -y install gcc perl kernel-headers kernel-devel bzip2 dkms make # reboot
Insert the guest VM CD now
# sudo mkdir -p /mnt/cdrom # sudo mount /dev/cdrom /mnt/cdrom/ # sudo sh /mnt/cdrom/VBoxLinuxAdditions.run --nox11 # reboot
Disable firewall
# chkconfig ip6tables off # chkconfig iptables off # service ip6tables stop # service iptables stop
Disable SELinux
In /etc/selinux/config change line SELINUX=enforcing to SELINUX=disabled and reboot server.
Configure Network
Set correct values tu /etc/hosts
Set Timeserver (ntpd)
Prosím někoho kdo ví jaká jsou pravidla pro řízení času aby to tu popsal
Set CLEVER commands executable everywhere
echo "export PATH=$PATH:/usr/local/plc/bin" > /etc/profile.d/plc_add_bin_path.sh
Install Tomcat
Register jars repository
cd /etc/yum.repos.d wget http://www.jpackage.org/jpackage50.repo
Install Tomcat
# yum install java-1.6.0-openjdk-devel # yum install tomcat6 # yum install tomcat6-docs-webapp # yum install tomcat6-admin-webapps
or run
# yum -y install mysql-connector-java java-1.6.0-openjdk-devel tomcat6 tomcat6-docs-webapp tomcat6-admin-webapps jakarta-common-digester
We need MySQL connector
# yum install mysql-connector-java # ln -s /usr/share/java/mysql-connector-java.jar /usr/share/tomcat6/lib/
We need jakarta-commons-digester
# yum insatll jakarta-commons-digester
# ln -s /usr/share/java/commons-digester-rss.jar /usr/share/tomcat6/lib/ # ln -s /usr/share/java/commons-digester.jar /usr/share/tomcat6/lib/ # ln -s /usr/share/java/commons-beanutils-bean-collections.jar /var/tomcat6/lib # ln -s /usr/share/java/commons-beanutils-core.jar /var/tomcat6/lib/ # ln -s /usr/share/java/commons-beanutils.jar /var/tomcat6/lib/ # ln -s /usr/share/java/commons-logging-api.jar /var/tomcat6/lib/
We want to run the Tomcat automaticaly
# chkconfig tomcat6 on # service tomcat6 start