UbuntuServer: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 8: Zeile 8:
== Entwicklung ==
== Entwicklung ==
<pre>apt-get install php-dev php-mbstring php-pear
<pre>apt-get install php-dev php-mbstring php-pear
</pre>
== ssh-Zugang ==
<pre>USR=wk
mkdir /home/$USR/.ssh
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH6ejWbYoDgg2qAsyS+T7Wk3mmS/USAoM76+9QyUMZMN5SgLXeQ2x9SmIV9ul6rxYvNgSnP243YpfeAvlvMILxzsdG5q0xG33uGYfjHHA2Z74ou2UsK6Yj2thW4d4BtSNK6CJKqIqdWJJvS2GfMQBHOW93m++UjS9e46hzP7MJRf3r3myfPIwiCHGuk2fmeaNqQsFMX/yPUulGAq2DR4gFlh1PESwdn3WwG1Uz+c21B08j8EEefiYZi2XPq2+uCXMBp8hpayLKRLVYXfF8MhT21CmAhmZAtZ0jq7c8YU9hyhrCjPpDy+UecGKz3YdJw7A+HOEdrdgC+ZP31191L0W3 wk@mint18" >/home/$USR/authorized_keys
chown -R /home/$USR/.ssh ; chmod 750 /home/$USR/.ssh ; chmod 600 /home/$USR/.ssh/authorized_keys
</pre>
</pre>

Version vom 14. Juni 2017, 06:48 Uhr


Beispiel für einen Ubuntu 16.04 Server (ohne GUI)

nginx + php7 + mysql

apt-get install nginx-full php-fpm mysql-server php-mysql

Entwicklung

apt-get install php-dev php-mbstring php-pear

ssh-Zugang

USR=wk
mkdir /home/$USR/.ssh
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH6ejWbYoDgg2qAsyS+T7Wk3mmS/USAoM76+9QyUMZMN5SgLXeQ2x9SmIV9ul6rxYvNgSnP243YpfeAvlvMILxzsdG5q0xG33uGYfjHHA2Z74ou2UsK6Yj2thW4d4BtSNK6CJKqIqdWJJvS2GfMQBHOW93m++UjS9e46hzP7MJRf3r3myfPIwiCHGuk2fmeaNqQsFMX/yPUulGAq2DR4gFlh1PESwdn3WwG1Uz+c21B08j8EEefiYZi2XPq2+uCXMBp8hpayLKRLVYXfF8MhT21CmAhmZAtZ0jq7c8YU9hyhrCjPpDy+UecGKz3YdJw7A+HOEdrdgC+ZP31191L0W3 wk@mint18" >/home/$USR/authorized_keys
chown -R /home/$USR/.ssh ; chmod 750 /home/$USR/.ssh ; chmod 600 /home/$USR/.ssh/authorized_keys