Ngày 01 - tìm hiểu Drupal

Ngày 01 - tìm hiểu Drupal

Virtualbox Image

Configure your main OS hosts file

192.168.56.115 drupal.local chive.drupal.local training.drupal.local

221.132.36.8 drupalcode.org ftp.drupal.org

# Server hosts file: /etc/hosts

Server Commands

Nginx:

service nginx start

service nginx stop

service nginx restart


// Start nginx

nginx


// Stop nginx

nginx -s stop


// Test nginx configuration

nginx -t


// Reload

nginx -s reload


PHP{5.2,5.3}-FPM:


PHP 5.2: listen port 9000

PHP 5.3: listen port 9090


service php-fpm start

service php53-fpm start


service php-fpm stop

service php53-fpm stop


service php-fpm restart

service php53-fpm restart


MySQL:

service mysql start

service mysql stop

service mysql restart


OS:

Restart:

reboot


Shutdown:

poweroff

Commands

# Print workding directory

pwd


# Change working directory

cd /var/www/training.drupal.local


# Change working directory, and remember current working directory

pushd /var/www/training.drupal.local


# Go back to last remembered directory (see pushd)

popd


# List directory items

ls

ls -l

ls -la


# Make directory

mkdir /path/to/new-dirname

mkdir -p /path/to/new1/new2/new3


# Remove a file

rm /path/to/filename


# Remove a directory

rm -rf /path/to/directory-name


# Create new file

touch /path/to/newfile.txt


# Copy file, directory

cp /path/to/file1 /path/to/file2

cp -rf /path/to/director1 /path/to/directory2


# Move/Rename file/directory

mv /path/to/old-file-location /path/to/new-file-location

mv /path/to/old-directory-location /path/to/new-directory-location


# View a file

cat /path/to/file
Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Hướng dẫn xử lý văn bản tốt hơn với AutoCorrect

Hướng dẫn xử lý văn bản tốt hơn với AutoCorrect

AutoCorrect cũng hoạt động trong Excel, Outlook và PowerPoint, mặc dù bạn không thể chọn trước văn bản trong các ứng dụng

Hướng dẫn định dạng dữ liệu tốt hơn trong excel

Hướng dẫn định dạng dữ liệu tốt hơn trong excel

Một trong những việc mà người mới dùng Excel ngại nhất là định dạng dữ liệu, thường người dùng

Hãng công nghệ Tencent - WeChat chơi game bên trong ứng dụng

Hãng công nghệ Tencent - WeChat chơi game bên trong ứng dụng

Có vẻ như Snapchat vừa “mượn” một chiêu từ chiến lược của WeChat, South China Morning Post viết. Tuần này, hãng mạng xã hội có trụ sở ở Los Angeles (Mỹ) tung nền tảng Snap Games

Công ty diệt chuột T&C

 

Diet con trung