StuRa:Server/Ghost: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 241: | Zeile 241: | ||
</pre> | </pre> | ||
--> | --> | ||
; Einrichten von MariaDB | |||
: <code>service mysql-server onestart</code> | |||
<!-- | |||
<pre> | |||
Installing MariaDB/MySQL system tables in '/var/db/mysql' ... | |||
/usr/local/libexec/mysqld: Undefined symbol "fdatasync" | |||
Installation of system tables failed! Examine the logs in | |||
/var/db/mysql for more information. | |||
The problem could be conflicting information in an external | |||
my.cnf files. You can ignore these by doing: | |||
shell> /usr/local/bin/mysql_install_db --defaults-file=~/.my.cnf | |||
You can also try to start the mysqld daemon with: | |||
shell> /usr/local/libexec/mysqld --skip-grant-tables --general-log & | |||
and use the command line tool /usr/local/bin/mysql | |||
to connect to the mysql database and look at the grant tables: | |||
shell> /usr/local/bin/mysql -u root mysql | |||
mysql> show tables; | |||
Try 'mysqld --help' if you have problems with paths. Using | |||
--general-log gives you a log in /var/db/mysql that may be helpful. | |||
The latest information about mysql_install_db is available at | |||
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db | |||
You can find the latest source at https://downloads.mariadb.org and | |||
the maria-discuss email list at https://launchpad.net/~maria-discuss | |||
Please check all of the above before submitting a bug report | |||
at http://mariadb.org/jira | |||
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql | |||
</pre> | |||
--> | |||
: <code>service mysql-server onestart</code> | |||
<pre> | |||
Starting mysql. | |||
</pre> | |||
: <code>sysrc mysql_enable=YES</code> | |||
<!-- | <!-- |
Version vom 4. August 2018, 16:18 Uhr
Host: srs100034
- pauschale Aktualisierung (auf die Schnelle)
pkg update && pkg upgrade -y
- Aktivierung zum Zugriff per SSH
sysrc sshd_enable=YES
service sshd start
- Erstellung Account pv
adduser
Username: pv Full name: PV Uid (Leave empty for default): Login group [pv]: Login group is pv. Invite pv into other groups? []: wheel Login class [default]: Shell (sh csh tcsh git-shell zsh rzsh nologin) [sh]: zsh Home directory [/home/pv]: Home directory permissions (Leave empty for default): Use password-based authentication? [yes]: Use an empty password? (yes/no) [no]: Use a random password? (yes/no) [no]: Enter password: Enter password again: Lock out the account after creation? [no]: Username : pv Password : ***** Full Name : PV Uid : 1001 Class : Groups : pv wheel Home : /home/pv Home Mode : Shell : /usr/local/bin/zsh Locked : no OK? (yes/no): yes adduser: INFO: Successfully added (pv) to the user database. Add another user? (yes/no): no Goodbye!
- Erstellung Account rj
adduser
Username: rj Full name: RJ Uid (Leave empty for default): Login group [rj]: Login group is rj. Invite rj into other groups? []: wheel Login class [default]: Shell (sh csh tcsh git-shell zsh rzsh nologin) [sh]: zsh Home directory [/home/rj]: Home directory permissions (Leave empty for default): Use password-based authentication? [yes]: Use an empty password? (yes/no) [no]: Use a random password? (yes/no) [no]: Enter password: Enter password again: Lock out the account after creation? [no]: Username : rj Password : ***** Full Name : RJ Uid : 1002 Class : Groups : rj wheel Home : /home/rj Home Mode : Shell : /usr/local/bin/zsh Locked : no OK? (yes/no): yes adduser: INFO: Successfully added (rj) to the user database. Add another user? (yes/no): no Goodbye!
- Installation der benötigten Pakete
pkg install -y nginx node8 npm-node8 bash python3 sudo mariadb102-server
- Einrichten von MariaDB
service mysql-server onestart
service mysql-server onestart
Starting mysql.
sysrc mysql_enable=YES