Difference between revisions of "Knowledge:Cloud"
From OpenKM Documentation
m |
|||
Line 1: | Line 1: | ||
== User == | == User == | ||
− | $ adduser --disabled-password ''' | + | $ adduser --disabled-password '''okmXX''' |
== Service == | == Service == | ||
− | $ cp /home/openkm/skel/tomcat /etc/init.d/tomcat-''' | + | $ cp /home/openkm/skel/tomcat /etc/init.d/tomcat-'''okmXX''' |
− | $ chmod 755 /etc/init.d/tomcat-''' | + | $ chmod 755 /etc/init.d/tomcat-'''okmXX''' |
− | $ update-rc.d tomcat-''' | + | $ update-rc.d tomcat-'''okmXX''' defaults |
Ahora hay que estableder el id de la instancia de cloud: | Ahora hay que estableder el id de la instancia de cloud: | ||
− | $ vim /etc/init.d/tomcat-''' | + | $ vim /etc/init.d/tomcat-'''okmXX''' |
== MySQL support == | == MySQL support == | ||
Line 15: | Line 15: | ||
$ mysql -h localhost -u root -p | $ mysql -h localhost -u root -p | ||
− | mysql> CREATE USER ''' | + | mysql> CREATE USER '''okmXX'''@localhost IDENTIFIED BY '*secret*'; |
− | mysql> CREATE DATABASE ''' | + | mysql> CREATE DATABASE '''okmXX'''_app DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; |
− | mysql> GRANT ALL ON ''' | + | mysql> GRANT ALL ON '''okmXX'''_app.* TO '''okmXX'''@localhost WITH GRANT OPTION; |
Revision as of 18:48, 25 January 2013
User
$ adduser --disabled-password okmXX
Service
$ cp /home/openkm/skel/tomcat /etc/init.d/tomcat-okmXX $ chmod 755 /etc/init.d/tomcat-okmXX $ update-rc.d tomcat-okmXX defaults
Ahora hay que estableder el id de la instancia de cloud:
$ vim /etc/init.d/tomcat-okmXX
MySQL support
Now create databases and user:
$ mysql -h localhost -u root -p mysql> CREATE USER okmXX@localhost IDENTIFIED BY '*secret*'; mysql> CREATE DATABASE okmXX_app DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; mysql> GRANT ALL ON okmXX_app.* TO okmXX@localhost WITH GRANT OPTION;