npm install -g forever
forever start app.js
cd /home/guoshuang/nginx/html/demo/hello-ws
npm install -g forever
forever start app.js
cd /home/guoshuang/nginx/html/demo/hello-ws
Package ControlUnable to download Sass. Please view the console for more details.
删除包控制器,然后重装。
deleted the ~/.config/sublime-text-3/Packages/Package Control folder and the
~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package file and reinstalled the package manager. Now it’s working again.
重装
https://packagecontrol.io/installation#st2
via
https://upcloud.com/community/tutorials/wordpress-with-docker/
图形界面 配置网络 dhcp
1 | nmtui |
1 | yum update && yum upgrade |
1 | systemctl start httpd.service |
1 | firewall-cmd --permanent --add-service=http |
sudo systemctl stop firewalld
or
systemctl disable firewalld
aili mirrors
http://mirrors.aliyun.com/centos/7/isos/x86_64/
1 | sudo yum update httpd |
/etc/init.d/network restart
======
sudo vi /etc/httpd/conf/httpd.conf
sudo vi /etc/httpd/sites-available/example.com.conf
<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
DocumentRoot /var/www/example.com/html
ErrorLog /var/www/example.com/log/error.log
CustomLog /var/www/example.com/log/requests.log combined
1 | ssh-keygen -t rsa |
SSH密钥会保存在home目录下的.ssh/id_rsa文件中.SSH公钥保存在.ssh/id_rsa.pub文件中
ssh-copy-id username@remote-server
server {
listen 80;
server_name blog.guoshuang.com;
charset utf-8;
location / {
root /usr/share/nginx/html/blog;
index index.html index.htm;
}
}
Check the fingerprint for the ECDSA key sent by the remote host
添加了重复的 主机
1 | ssh-keygen -R <remote-system-ip-address> |
https://www.w3cplus.com/svg/styling-svg-use-content-css.html
1 | var css = 'h1 { background: red; }', |
1 | (function() { |
78.141.222.176
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install shadowsocks
vi /etc/shadowsocks.json
{
“server”:”0.0.0.0”,
“server_port”:443,
“local_port”:1080,
“password”:”1234567890”,
“timeout”:600,
“method”:”aes-256-cfb”
}
vi /etc/systemd/system/shadowsocks.service
[Unit]
Description=Shadowsocks
[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json
[Install]
WantedBy=multi-user.target
systemctl enable shadowsocks
systemctl start shadowsocks
#查看状态命令
systemctl status shadowsocks
firewalld(centos7)
systemctl stop firewalld
1 | du -d 1 -h |
find server ip
1 | ip addr |
default directory
1 | /usr/share/nginx/html |
global configuration
1 | /etc/nginx/nginx.conf |
ss install
默认有防火墙,需要关闭
virtual host
1 | server { |
就这样啦,猪小童
1 | <svg viewbox="0 0 10 50"> |
1 | <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous"> |
生成 (1.js)Integrity
1 | openssl dgst -sha384 -binary 1.js | openssl base64 -A |