I want to continue to be myself who can create moving things. I signed up for a VPS and was able to publish what I made with Django, so I'll leave a note of that time.
As a person involved in AWS, GCP, and Azure-based business, I thought that it was not necessary to do anything individually, so I signed a VPS contract. Select the minimum memory and SSD for Sakura VPS.
Select the OS that you often come into contact with in your work. Since the connection permission port can be selected at this timing, SSH(22) Web(80/443) Email (25/110/143/465/587/993/995) choose.
Confirm the connection from Teraterm used by the client to the IP address at the time of contract. I want to prohibit login as root considering the minimum security at this point.
User created.
# useradd hoge
# passwd hoge
Settings to prevent ssh connection as root.
# vi /etc/ssh/sshd_config
Open the file with
PermitRootLogin no
Save as. Confirm that ssh connection is no longer possible as root. After that, when connecting to ssh, the user Connect with hoge and if necessary
$ sudo command
And.
Install Python 3 on your Windows 10 PC.
On the download site, select Windows x86_64 executable installer and DL. Execute python-3.7.7-amd64.exe. Add Python 3.7 to PATH check is ON.
In the future, a virtual environment will be created for each development unit.
> python -m venv venv_hoge_hoge
A directory has been created and contains a set of files for the virtual environment.
Enter the virtual environment.
> cd venv_hoge_hoge\Scripts
> activate.bat
(venv_hoge_hoge)>
Exit the virtual environment.
(venv_hoge_hoge)> deactibate
>
Recommended Posts