Difference between revisions of "Machine/Discovery One/Node"
< Machine | Discovery One
Jump to navigation
Jump to search
m |
m |
||
Line 12: | Line 12: | ||
Set the IP address for the each nic | Set the IP address for the each nic | ||
− | + | /etc/networks/interfaces | |
− | |||
<pre> | <pre> | ||
# The loopback network interface | # The loopback network interface | ||
Line 39: | Line 38: | ||
restart the network | restart the network | ||
− | + | /etc/init.d/networking restart | |
== Install Database == | == Install Database == |
Revision as of 21:56, 19 February 2010
ASLO Node
While discussing activities.sugarlabs.org maintainability with Dogi this afternoon, he suggested that instead of thinking about web, proxy, and database nodes we create a standard ALSO node which we can adopt and tune via configs.
Components
Install Emacs
I just like it:)
apt-get install emacs
Setup Network
Set the IP address for the each nic
/etc/networks/interfaces
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.0.0.101 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.1 #auto eth1 iface eth1 inet static address 10.0.0.201 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.1
restart the network
/etc/init.d/networking restart
Install Database
Install needed packages
apt-get install mysql-client-5.0 mysql-server-5.0
Log Rotate
/etc/logrotate.d/mysql-server
# - I put everything in one block and added sharedscripts, so that mysql gets # flush-logs'd only once. # Else the binary logs would automatically increase by n times every day. # - The error log is obsolete, messages go to syslog now. /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log { daily rotate 7 missingok create 640 mysql adm compress sharedscripts postrotate test -x /usr/bin/mysqladmin || exit 0 # If this fails, check debian.conf! MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf" if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then # Really no mysqld or rather a missing debian-sys-maint user? # If this occurs and is not a error please report a bug. if ps cax | grep -q mysqld; then exit 1 fi else $MYADMIN flush-logs fi endscript }
Turn off database by default
sudo update-rc.d -f mysql remove