s3cmdを使ってファイルの操作
saharaプラグインの利用まとめ
$ vagrant plugin list vagrant-share (1.1.4, system)
$ vagrant plugin install sahara Installing the 'sahara' plugin. This can take a few minutes… Installed the plugin 'sahara (0.0.17)'!
$ vagrant plugin list sahara (0.0.17) vagrant-share (1.1.4, system) コマンド [#peb81170]
SalesCube
SalesCubeのインストール
cp -p iptables iptables.date +%Y%m%d
vi iptables
↓以下を追加 -A INPUT -m state –state NEW -m tcp -p tcp –dport 8080 -j ACCEPT
service iptables restart
下記情報でログイン [#q6c7bdee]
samba
sambaでLinuxパスワードと同期している場合のユーザー追加手順
sambaのインストールと設定
■LinuxとSambaのパスワードを同期するには http://www.atmarkit.co.jp/flinux/rensai/linuxtips/458syncpwl2s.html
vi /etc/samba/smb.conf [global]セクションに以下の記述を追加する。
————————— Logging Options —————————–
unix password sync = Yes pam password change = yes passwd program = /usr/bin/passwd %u passwd chat = NewUNIXpassword %n\n ReTypenewUNIXpassword* %n\n passwd:allauthenticationtokensupda tedsuccessfully*
mkdir smb_share chmod 777 smb_share vi /etc/samba/smb.conf
workgroup = MYGROUP
workgroup = WORKGROUP
server string = Samba Server Version %v
; netbios name = MYSERVER netbios name = SMB-SVR01
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 ; hosts allow = 127. 192.168.12. 192.168.13. hosts allow = 127. 192.168.
unix charset = UTF-8
display charset = UTF-8
;unix charset = UTF-8-MAC
;unix charset = macosxfs
dos charset = CP932
unix password sync = Yes
pam password change = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix extensions = no
[homes] comment = Home Directories browseable = no ; writable = no writable = yes valid users = %S create mask = 0700 directory mask = 0700
[share] <ーーー共有名 comment = WebLife share Directory path = /mnt/samba/share writable = Yes browseable = Yes guest ok = no guest only = no directory mode = 0775 create mode = 0644
SAMBAマウントしているZディスクへデータをバックアップするバッチ
Var
set YOUBI=%date:
-2,-1%
BackUP
robocopy C:\Inetpub\scripts\cbmw\mw\data\ Z:\mw_%YOUBI%\data\ /mir > z:\log\log_%YOUBI%.txt robocopy C:\Inetpub\scripts\cbmw\mw\file\ Z:\mw_%YOUBI%\file\ /mir > z:\log\log_%YOUBI%.txt robocopy C:\Inetpub\scripts\cbmw\mw\back\ Z:\mw_%YOUBI%\back\ /mir > z:\log\log_%YOUBI%.txt