Install wordPress blog manually

2019-05-31  本文已影响0人  bfx1000

1.Use ssh-key instead of password

adduser bird
passwd bird
usermod -aG wheel bird  #add user to sudo group
ssh-keygen
ssh-copy-id $user@Your_server_ip -p[port]
chmod 600 /home/bird  # Some OS do not need this step ?
chmod 700 /home/bird/.ssh
chmod 600 /home/bird/.ssh/authorized_keys
vi /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
# set your ssh key position
AuthorizedKeysFile  /home/bird/.ssh/authorized_keys 
PasswordAuthentication no
ChallengeResponseAuthentication no
PermitRootLogin without-password
systemctl restart sshd
systemctl reload sshd
ssh bird@123.123.123.123 -p [port]

If something wrong happened, use "ssh -v bird@your_server_ip" to debug.

2. Apache installation

3. Mysql installation

4. Php and phpmyadmin

上一篇 下一篇

猜你喜欢

热点阅读