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