This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use the domain name or IP address | |
ServerName example.com:443 | |
# point to the files created when generating the certificate | |
SSLEngine on | |
SSLCertificateFile /etc/httpd/ssl/apache.crt | |
SSLCertificateKeyFile /etc/httpd/ssl/apache.key | |
# disable broken/weak protocols and ciphers | |
# see https://cipherli.st/ for an updated list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# customized Apache configuration | |
# add this to the end of /etc/httpd/conf/httpd.conf | |
# or put it in a separate file such as /etc/httpd/conf.d/apex.conf | |
# disable sensitive version info | |
ServerSignature Off | |
ServerTokens Prod | |
# standard alias for Apex image files | |
Alias /i/ "/var/www/apex/images/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Oracle Java JDK | |
# see http://stackoverflow.com/questions/20901442/how-to-install-jdk-in-centos | |
# remove OpenJDK | |
yum remove java* | |
# assume .rpm file is already copied to /u01/download | |
cd /u01/download | |
rpm -ivh jdk-7u79-linux-x64.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup Java environment in bash profile to be able to access java from anywhere | |
# http://stackoverflow.com/questions/16823591/how-to-add-lines-to-end-of-file-linux | |
# http://www.davidghedini.com/pg/entry/install_tomcat_7_on_centos | |
echo "JAVA_HOME=/usr/java/latest" >> /root/.bash_profile | |
echo "export JAVA_HOME" >> /root/.bash_profile | |
echo "PATH=$JAVA_HOME/bin:$PATH" >> /root/.bash_profile | |
echo "export PATH" >> /root/.bash_profile | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- run as SYS | |
sqlplus /nolog | |
connect sys as sysdba | |
-- show current values | |
show parameters sessions; | |
show parameters processes; | |
show parameters memory; | |
-- adjust values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Connector port="8090" protocol="HTTP/1.1" | |
connectionTimeout="20000" | |
maxThreads="400" | |
compression="on" | |
compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript" | |
redirectPort="8443" | |
server="whateverFakeName" | |
URIEncoding="UTF-8" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# description: Tomcat Start Stop Restart | |
# processname: tomcat | |
# chkconfig: 234 20 80 | |
JAVA_HOME=/usr/java/latest | |
export JAVA_HOME | |
PATH=$JAVA_HOME/bin:$PATH | |
export PATH | |
CATALINA_HOME=/usr/share/tomcat7/latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sample /etc/hosts file | |
# see http://unix.stackexchange.com/questions/13046/format-of-etc-hosts-on-linux-different-from-windows | |
# IPv4 | |
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 | |
# IPv6 | |
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 | |
# put your IP address and your hostname and aliases below | |
1.2.3.4 myserver.mydomain.example myserver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup Oracle environment in bash profile to be able to access sqlplus from anywhere | |
# http://stackoverflow.com/questions/16823591/how-to-add-lines-to-end-of-file-linux | |
# this adds the Oracle environment variables to the "oracle" user, but you may also want to add it to root or any other users | |
echo '. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh' >> /home/oracle/.bash_profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Oracle XE 11g on CentOS | |
# assumes the installation file has already been copied to /u01/download | |
# create Oracle user and groups | |
groupadd oinstall | |
groupadd dba | |
useradd -g oinstall -G dba,oinstall oracle | |
chown -R oracle:oinstall /u01 |