Skip to content

Instantly share code, notes, and snippets.

  • 更改enthernet名稱
#ip link set name down
#ip link set name name newname
#ip link set newname up
  • 在網路介面卡更改ip
  • 在同一張介面卡新增虛擬ip

delCube.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class delcube : MonoBehaviour {
    public Text textUI;
  • Ftp
#yum install -y vsftpd
#yum install ftp
#cd /etc/vsftpd
# setsebool -P allow_ftpd_full_access on
# setsebool -P ftp_home_dir on
@blackstuend
blackstuend / Linux problem.md
Last active November 6, 2018 18:16
istar0me can you save me?
  • set 與 env 的差別(感覺都是列出環境變數)
  • 要怎麼將環境變數永久儲存,而不是用export 只是在子程序可以使用??
  • 開啟apache
將SELINUX 調為disabled
# vim /etc/selinux/config
重啟電腦(調整selinux )
reboot
關閉防火牆
# systemctl stop firewalld
將防火牆開機關閉
  • 進行koa.router時,static 所指向的資料夾位置也會跟著router。
.get('/account/login',content.login)  //此時我public的css 和 js都會變成/account/css 底下...

Samba使用

# yum install -y samba //安裝Samba
# mkdir /sharedpath 
# gedit /etc/samba/smb.conf
  • 修改smb.conf

安裝siege進行網站測試

# yum install -y siege
# siege -c 100 -r www.google.com // -c為進入幾次 -r 為進行幾次

參考資料: https://blog.pmail.idv.tw/?p=13663

安裝 proxy